Styling, images and single product problems

This topic is: not resolved

This topic contains 7 replies, has 3 voices, and was last updated by  Roy Ho 1 year, 8 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
Author Posts
Author Posts
May 25, 2011 at 2:46 am #105066

mikedistras
New Member

At the moment these all seem like styling and small theming errors, nothing too major, but since the upgrade the site has had to be taken offline because of these issues.
For some reason the themed “Store” front page isnt showing any styling that it should be.
Yet the Checkout page is showing the theme fine.
Store: http://www.thefightlounge.co.uk/store/
Checkout: http://www.thefightlounge.co.uk/store/checkout/
Categories arnt showing the styling either: http://www.thefightlounge.co.uk/store/legacy/
Product pages are displaying as a blog post, not the shops theme also..: http://www.thefightlounge.co.uk/store/ecko/ecko-unltd-epitaph-arch-t-shirt/
Would appreciate any help on resoloving these issues as soon as possible.
Also, pagination seems to be broken too…

May 25, 2011 at 9:01 am #105067

mikedistras
New Member

Righto, Ive managed to fix my own problems.
Could well be worth writing something up around this and making it a sticky thread as seems like it could be a popular problem…

How to fix “Individual Products Page Displaying as Blog Post”:
- Create a new file called “single-wpsc-product.php” in your websites theme directory.
I just copied my shops current theme file, and renamed it.

How to fix shop homepage styling:
- Open: wp-e-commerce/wpsc-includes/theme.functions.php
- On about line 1107 you should see something like:

if ( is_single() )
array_unshift( $templates, 'page.php' );

- change page.php to your theme file, or even your single page theme file (single-wpsc-product.php)

They were the main of my problems, so I hope my answer at elast helps some other people.
Also check out this page that helped and straightened things out for me: http://docs.getshopped.org/wiki/documentation/design-and-layout/templates

June 3, 2011 at 10:53 pm #105068

jakob@ludaxedo.se

Mike,

Would you mind explaining the “How to fix “Individual Products Page Displaying as Blog Post” issue a bit more?

As you can see, my category pages and single product pages are treated as blog posts
http://www.visualante.se/products-page/bags/
http://www.visualante.se/products-page/bags/vehm/

And if I understand correct, you managed to solve that? I just dont follow your instructions:

“How to fix “Individual Products Page Displaying as Blog Post”:
- Create a new file called “single-wpsc-product.php” in your websites theme directory.
I just copied my shops current theme file, and renamed it.”

Care to explain a litte more in detail?

Cheers,

Jakob

August 30, 2011 at 1:21 pm #222611

mikedistras
New Member

I know this is a really old post.
I actually had to search through all the old forum posts to find my OWN fix haha.

The products coming up as a blog post problem seems to just have merged into the second answer now.

Open up: theme.functions.php

Search for:
array_push( $templates, ‘page.php’, ‘single.php’ );

if ( is_single() )
array_unshift( $templates, ‘single-wpsc-product.php’ );

Change page.php and single.php to the files you would like to use as your shop fronts theme, and as your products themed page

August 30, 2011 at 1:38 pm #222614

mikedistras
New Member

Actually, nevermind. Still do what I said above.
But also mae a copy of your current ‘page.php’ file and rename it: “single-wpsc-product.php”

Now whatever you edit on this page, will change the theme of your Single Products Page

August 30, 2011 at 1:47 pm #222615

Roy Ho
Resident Expert

Not recommend to do that…If you change page.php like that, that means regular pages that are non-ecommerce will be affected by default…Instead of editing core files…simply wrap the code inside page.php in a condition and check for if wpec category or product display…else display normal page.php

This is much better solution…no need to edit core file and it works for all post types…

August 30, 2011 at 4:16 pm #222656

mikedistras
New Member

I meant make a copy of your page.php file, and rename the newly copied one.

So your original page.php page would be intact.

Its the equivalent of creating a new page called “single-wpsc-product.php” and just pasting in literally everything from Page.php into the new file.

August 30, 2011 at 4:45 pm #222670

Roy Ho
Resident Expert

I understand, however you’re still touching the core files…

Viewing 8 posts - 1 through 8 (of 8 total)

The forum ‘3.8 Stable Release’ is closed to new topics and replies.