Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   eCommerce & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=31)
-   -   Category Page Broken WP ecommerce (http://forum.bytesforall.com/showthread.php?t=13906)

brideoflinux Apr 25, 2011 06:28 PM

Category Page Broken WP ecommerce
 
I just upgraded to wp ecommerce version 3.8.1 and upgraded WP at the same time to 3.1.1 for a site that's still in the build stage but about to go live. Every thing seems to be fine, but... There's always that "but..." If you click on a product category, you get a page that's pretty much broken. No links. Text that should be part of a script displays, all fonts default size... If you click the "all products" page, everything works perfectly.

View a broken category page here: http://tea-sanctuary.com/products-page/bulk-herbs/

View a properly displaying page here: http://tea-sanctuary.com/products-page/

I've pretty well narrowed this down to a theme problem. Everything works fine using the Twenty Ten theme. This site is currently running Atahualpa 3.6.4 - but I had a similar problem running version 3.5.1.

Any help would be greatly appreciated!

juggledad Apr 25, 2011 07:08 PM

There is not enough information to try to help you. How did you build your products, how many products, categories, are all the fields in the products filled in, what values, are you using any extra options (if the plugin has any)

without having access to the site, there are too many variables to try to reproduce something like this. You said you had a similar problem in 3.5.1, well what did you do to fix it then?

brideoflinux Apr 25, 2011 07:47 PM

It was the same site that had the problem in 3.5.1 after I upgraded wp ecommerce. Upgrading to 3.6.4 solved a related problem (sidebar not showing up on category page). If you follow the links I provided on the first post you can see what I mean and all of the other questions will be answered. As I said, everything displays fine if you look at a list of all products, but when you look at a category page, it's like much of the html is stripped from the source. (Again, all links and images are gone, etc...)

brideoflinux Apr 25, 2011 07:48 PM

There are four categories and about seventeen products at this time. My client is adding more even as I try to get this fixed...

juggledad Apr 25, 2011 08:10 PM

Chech to see at ato->configure excerpts if you are showing foll posts or excerpts on the various pages. When showing excerpts, HTML is stripped unless you fill in the 'do not strip' option

brideoflinux Apr 25, 2011 08:43 PM

Ah, we're getting started. Setting to full doesn't help (evidently wp ecommerce overwrites setting?), but the "do not strip" option works until I get to the AJAX to post to the shopping cart. Maybe I'm just not sure of WHAT to strip here?

juggledad Apr 26, 2011 05:15 AM

Since I don't know what you have added to the products, I have no way of knowing. I created a couple products and had no issue, of course I didn't fill them completely in. So like I said, without knowing what is part of the product (ie where and what ajax code did you use)...

brideoflinux Apr 26, 2011 10:03 AM

We haven't "used" any AJAX code. Whenever you create a new product, a "Add to Cart" button is created in the category list view so that the visitor can purchase the product without any further ado. This is a function of the wp e-commerce app. This "Add to Cart" refers to AJAX code.

Here is an example of the code as it renders in another theme, displaying properly:

<div id="post-123" class="post-123 wpsc-product type-wpsc-product status-publish hentry">

<h1 class="entry-title">Bulk Herbs</h1>

<div class="entry-content">

<div id='products_page_container' class="wrap wpsc_container">








<div class='wpsc_category_details'>

</div>


<!-- Start Pagination -->
<!-- End Pagination -->


<div class="productdisplay default_product_display product_view_123 bulk-herbs">
<div class="textcol">


<div class="imagecol">
<div class="item_no_image">
<a href="http://tea-sanctuary.com/products-page/bulk-herbs/organic-catnip/">
<span>No Image Available</span>
</a>
</div>
</div>

<div class="producttext">

<h2 class="prodtitles">

<a class="wpsc_product_title" href="http://tea-sanctuary.com/products-page/bulk-herbs/organic-catnip/">Organic Catnip</a>


<a class='wpsc_edit_product' href='http://tea-sanctuary.com/wp-admin/post.php?action=edit&amp;post=123'>Edit</a> </h2>



<div class='wpsc_description'><p>Catnip is a member of the mint family. It has calming properties so it works great for anxiety and stress. It also helps with insomnia, stomach ailments, and headaches.</p>
<p>2 oz</p>
</div>





<form class='product_form' enctype="multipart/form-data" action="http://tea-sanctuary.com/products-page/bulk-herbs/organic-catnip/" method="post" name="product_123" id="product_123" >


<div class="custom_meta">
</div>



<div class="wpsc_variation_forms">
</div>

<!-- THIS IS THE QUANTITY OPTION MUST BE ENABLED FROM ADMIN SETTINGS -->

<p class="wpsc_extras_forms"/>
<div class="wpsc_product_price">
<span id="product_price_123" class="pricedisplay"> $5.49</span>Price:<br/>


</div>

<input type="hidden" value="add_to_cart" name="wpsc_ajax_action"/>
<input type="hidden" value="123" name="product_id"/>

<!-- END OF QUANTITY OPTION -->
<div class='wpsc_buy_button_container'>
<input type='image' src='http://tea-sanctuary.com/wp-content/plugins/wp-e-commerce/themes/marketplace/images/atc.gif' id='product_123_submit_button' class='wpsc_buy_button' name='Buy' value="Add To Cart" />

<div class='wpsc_loading_animation'>
<img title="Loading" alt="Loading" src="http://tea-sanctuary.com/wp-content/plugins/wp-e-commerce/images/indicator.gif" class="loadingimage"/>

Updating cart... </div>
</div>
</form>



</div>




This is the code rendered through Atahualpa 3.6.4 that displays broken:

<div class="post-123 wpsc-product type-wpsc-product status-publish hentry odd" id="post-123">

<div class="post-headline"> <h2> <a href="http://tea-sanctuary.com/products-page/bulk-herbs/organic-catnip/" rel="bookmark" title="Permanent Link to Organic Catnip">Organic Catnip</a></h2>
</div>

<div class="post-bodycopy clearfix"><p> <a href="http://tea-sanctuary.com/products-page/bulk-herbs/organic-catnip/"> <span>No Image Available</span> </a><br />
<h2 class="prodtitles"> <a class="wpsc_product_title" href="http://tea-sanctuary.com/products-page/bulk-herbs/organic-catnip/">Organic Catnip</a> <a class='wpsc_edit_product' href='http://tea-sanctuary.com/wp-admin/post.php?action=edit&amp;post=123'>Edit</a> </h2>

<p>Catnip is a member of the mint family. It has calming properties so it works great for anxiety and stress. It also helps with insomnia, stomach ailments, and headaches.</p>
<p>2 oz</p>
<form class='product_form' enctype="multipart/form-data" action="http://tea-sanctuary.com/products-page/bulk-herbs/organic-catnip/" method="post" name="product_123" id="product_123" >
<p class="wpsc_extras_forms"/>
<p> <span id="product_price_123" class="pricedisplay"> $5.49</span>Price:</p>
<p> <img title="Loading" alt="Loading" src="http://tea-sanctuary.com/wp-content/plugins/wp-e-commerce/images/indicator.gif" class="loadingimage"/><br />
Updating cart… </p></form>

<p> <a href="http://tea-sanctuary.com/products-page/bulk-herbs/organic-chamomile/"><br />
<span>No Image Available</span><br />
</a></p>

brideoflinux Apr 26, 2011 10:05 AM

The above example is from the top of the column to the end of the first product listing.

brideoflinux Apr 26, 2011 11:24 AM

What would help, perhaps, is if I could get no tags inside a category post stripped.

brideoflinux Apr 26, 2011 12:09 PM

Okay, I've got the display problem solved for the category pages, except for the fact that the category name at the top of the column, which should read as the name of the category itself, such as "medicinal teas" is now reading as one of the products in that category. Any ideas?

juggledad Apr 26, 2011 02:54 PM

looks like you got it fixed - Yes...No??

brideoflinux Apr 27, 2011 07:17 PM

That problem, yes. However, at the top of each category, where it should have the name of the category, I'm getting the name of one of the products.

juggledad Apr 28, 2011 04:16 AM

What did you do to 'fix' it, the fix may be the cause of the new problem

MikeBegley May 6, 2011 12:47 PM

I'm running into something similar for a site I'm building for a friend. The site can be seen here:

http://www.lotusluxuries.com/glow-stuff/

In the left column, at the top I'm using the Product Catagory widget, and when a user clicks on a category, the category isn't displayed properly, and the url is http://machine/category-name

Also, at the bottom of the left column, I've simulated the proper behavior using a custom menu. In this case, when the user clicks a link in this menu, I've set the target URL to http://machine/product-page/category-name.

This doesn't happen when I use other themes. This also doesn't happen with the current atahualpa and WP-EC 3.7.x, so I'm not sure if the bug lies in the theme, WP-EC or some interesting interaction between the two.

Thanks for any assistance you can offer!

-mike

edwardmccaughan May 19, 2011 06:21 AM

I'm having a similar problem, but I suspect the problem is that the category view isn't using the ecommerce catagory template to render, but is actually using the blog post (or something along those lines)

(quick warning before I begin, the carneval links are for an adult toys site I'm building for someone. there's no nudity or anything eye watering on it, but if you open it at work, colleagues might get a bit suspicious about your hobbies)

on mine, viewing a catagory throws out the right text, but doesn't bring in the formatting, javascript or custom images that it should:
http://www.buzzwordoverload.co.uk/pe...ory=restraints

changing back to twentyten theme makes it display correctly.

I came across a similar and possibly connected issue on the getshopped support forum:
http://getshopped.org/forums/topic.php?id=19612
but putting the template files in place like it said didn't seem to help me

does anyone with better ideas of how atahualpa picks up custom templates got any clues?

edwardmccaughan May 20, 2011 05:52 AM

One other clue that might help someone solve this, there was a similar issue on a different theme, which was supposedly fixed:
http://getshopped.org/forums/topic.php?id=16329

so when I try:
http://www.buzzwordoverload.co.uk/pe...ory=restraints
it uses the standard blog post template, which doesn't have any formatting, but if I add the page id of the main store page:
http://www.buzzwordoverload.co.uk/pe...ints&page_id=4
it magically starts using the correct template and working perfectly

I'm still learning the internals of wordpress, so poking at the code hasn't given me any obvious solutions, but I will continue poking.

lds May 22, 2011 05:56 AM

#brideoflinux, ref. to post13 and 14, what did you do to solv the problem.

Have the same problem here, been looking for bug fix for weeks, without any results.

lmilesw May 22, 2011 04:25 PM

It looks like @brideoflinux switch from WP eCommerce to eShop.

edwardmccaughan May 23, 2011 08:19 AM

I've managed to fix this on my site, in an only slightly cludgy way.

I took the Atahualpa "themes/atahualpa364/index.php" template file and replaced the part that normally displays posts with the single product display template from "plugins/wp-e-commerce/wpsc-theme/wpsc-single_product.php" and saved it as: "themes/atahualpa364/taxonomy-wpsc_product_category.php"

this makes atahualpa use that template on that the category view and hey presto, it seems to work as it should.

if anyone wants to try and see if it fixes the problem for them, I've put the file up here:
http://www.buzzwordoverload.co.uk/mi...tegory.php.zip
just drop the .php file inside into your atahualpa theme folder and it should work. probably.

This still doesn't answer the question of why the problem occurs in the first place though :-/

jeroenbinken May 26, 2011 07:19 PM

Took me hours to find the cause of the problem! Standard theme does not give any problems, but switching to Atahualpa creates it. Will give "edwardmccaughan" solution a go.

jeroenbinken May 26, 2011 07:41 PM

This gives me the extensive list view, how do I edit this file to give me the grid view? Something like a grid of 4x4 thumbnails of the products? In addition, I would like to have a white background (I think it is transparent now?), TIA!

Website is: http://interieurdeco.nl/

jeroenbinken May 27, 2011 02:21 PM

I set ATO>configure excerpts all to show full, but this did not solve the problem. Anybody any ideas, TIA?

BTW I have the latest version all 3 (Atahualpa, Wordpress, WP E-commerce)

jeroenbinken May 30, 2011 05:14 PM

Anybody any suggestions? I have been trying to figure out what is going wrong, but can't solve this issue. :(

jeroenbinken May 30, 2011 10:18 PM

06:00 in the morning and I found the problem. The product categories widget displays the following link, which does not work

HTML Code:

http://binkengroep.nl/interieurdeco/?wpsc_product_category=kunst
but the link below does work

HTML Code:

http://binkengroep.nl/interieurdeco/?page_id=7&wpsc_product_category=kunst
I assume that I will have to edit the "wpsc-category_widget.php" file? Which contains the following code

<?php
$curr_cat = get_term( $category_id, 'wpsc_product_category', ARRAY_A );
$category_list = get_terms( 'wpsc_product_category', 'hide_empty=0&parent=' . $category_id );
$link = get_term_link((int)$category_id , 'wpsc_product_category');
$category_image = wpsc_get_categorymeta( $curr_cat['term_id'], 'image' );
$category_image = WPSC_CATEGORY_URL . $category_image;
$show_name = $instance['show_name'];

if ( $grid ) : ?>

<a href="<?php echo $link; ?>" style="padding: 4px 4px 0 0; width:<?php echo $width; ?>px; height:<?php echo $height; ?>px;" title="<?php echo $curr_cat['name']; ?>" class="wpsc_category_grid_item">
<?php wpsc_parent_category_image( $show_thumbnails, $category_image , $width, $height, true ,$show_name); ?>
</a>

<?php wpsc_start_category_query( array( 'parent_category_id' => $category_id, 'show_thumbnails' => $show_thumbnails, 'show_name' => $show_name) ); ?>

<a href="<?php wpsc_print_category_url(); ?>" style="width:<?php echo $width; ?>px; height:<?php echo $height; ?>px" class="wpsc_category_grid_item" title="<?php wpsc_print_category_name(); ?>">
<?php wpsc_print_category_image( $width, $height ); ?>
</a>

<?php wpsc_print_subcategory( '', '' ); ?>

<?php wpsc_end_category_query(); ?>

<?php else : ?>
<div class="wpsc_categorisation_group" id="categorisation_group_<?php echo $category_id; ?>">
<ul class="wpsc_categories wpsc_top_level_categories">
<li class="wpsc_category_<?php echo $curr_cat['term_id']; wpsc_print_category_classes($curr_cat); ?>">
<?php if(! ($category_image == WPSC_CATEGORY_URL) ){ ?>
<a href="<?php echo $link; ?>" class="wpsc_category_image_link"><?php
wpsc_parent_category_image( $show_thumbnails, $category_image , $width, $height, false, $show_name ); ?></a>
<?php } ?>

<a href="<?php echo $link; ?>"><?php echo esc_html( $curr_cat['name'] ); ?></a>

<ul class="wpsc_categories wpsc_second_level_categories">

<?php wpsc_start_category_query( array( 'parent_category_id' => $category_id, 'show_thumbnails' => $show_thumbnails , 'show_name' => $show_name) ); ?>

<li class="wpsc_category_<?php wpsc_print_category_id(); wpsc_print_category_classes_section();?>">
<a href="<?php wpsc_print_category_url(); ?>" class="wpsc_category_image_link">

<?php wpsc_print_category_image( $width, $height ); ?>

</a>

<a href="<?php wpsc_print_category_url(); ?>" class="wpsc_category_link">

<?php wpsc_print_category_name(); ?>

<?php if ( 1 == get_option( 'show_category_count') ) wpsc_print_category_products_count( "(",")" ); ?>

</a>

<?php wpsc_print_subcategory( '<ul>', '</ul>' ); ?>

</li>

<?php wpsc_end_category_query(); ?>

</ul>
</li>
</ul>

<div class="clear_category_group"></div>
</div>

<?php endif; ?>

juggledad May 30, 2011 10:54 PM

if you are running 367 you should apply the bugfix's (New Versions & Updates) if you haven't already

jeroenbinken May 30, 2011 11:31 PM

Thanks, did as you suggested, and replaced the 3 files. But the category widget still does not work properly.

juggledad May 31, 2011 04:46 AM

Then it looks like you'll still have to fix the widget.

asder99 May 31, 2011 10:07 AM

Quote:

Originally Posted by brideoflinux (Post 64025)
Okay, I've got the display problem solved for the category pages

I'm sorry, I didn't understand clearly.
Can you explain me how did you fix that?


Thank you!

jeroenbinken May 31, 2011 04:34 PM

I'm using hard links to the categories, as editing the category widget is beyond my skills. But using links you can achieve almost the same effect (category index). However, it does require more work, as you have to create the link manually for each category.

misscabrina Jun 1, 2011 07:45 PM

Just wanted to chime in and say I've been having this same issue; if I add the widget for Prices (which lets you view items based on price ranges) all items in the selected price-range option populate in the main section of the page.
But if I use the product-category widget, I don't see everything; instead I just get a mumbled jumbled up display of only one product.
I'm not well versed in php and am not sure how to implement the php suggestion posed by another poster... in for a solution! hopefully..

Jam Jun 11, 2011 03:43 AM

Hi all,
Same problem here. I have read as much as I can until my head is spinning.

I have used these plugins before with no drama (getting grid view on category pages), but with Twenty Ten theme, not ATA.

ATA 3.4.9 | WP Version 3.0.5 | todays WP eCommerce Version 3.8.4 with Gold Cart Version 2.9.2 for Grid view

Grid view working perfectly on Products page.

It starts to fall apart with Right Sidebar not showing on any of the shop pages. I have Right sidebar turned on (posts and pages), but have excluded it from all existing "website pages" via ATO.

Sidebar shows on normal pages.

But as soon as you click any Category, it shows the items as "posts". I removed "Admin and date" etc (removed in ATO/Edit post/page info items) but its still showing the Read More and treating like a post, with no right sidebar.

Can someone please help me make the products not behave like posts, and explain how to get the right sidebar showing on all shop pages (when Ive only excluded it from select "pages", no shop pages).

I can provide login details if one of the mods is able to help?

Thanks heaps if you can,

Jill

Edit - Correction I have ATA 3.4.9

and update - Sidebars are working on the Page not Found page.

Edit - links removed

lmilesw Jun 11, 2011 09:26 PM

I took a look. Do you have the same issue if you switch to the TwentyTen theme? Have you considered adding Atahualpa 3.6.7 (with bug fixes) and switching to it to see if the problem remains? I have heard that WP e-commerce can be problematic in some situations. I realize that doesn't help much but the two thing above are what I would try first.

Jam Jun 12, 2011 06:48 AM

Thanks Larry. I just switched to Twenty Ten theme, had a quick look then switched back.
While in Twenty Ten the standard meta tags showed in sidebar but none of the Shop widgets.
Ive been to the wp-ecommerce forum and done (I think everything) they recommend doing.
Moving theme files across etc, but nothing gets the shop sidebar widgets to show. And the product items are still treated like posts.

You can do the switcheroo to have a look if you like, I just did and switched it back quickly.

Would 3.6.7 break anything? I hate upgrades :(

Ive just put up a front page (index.html) to close it to public while you have a look in twenty ten if you want.

Jam Jun 12, 2011 07:04 AM

In Twenty Ten now and all still not working so it has to be the WP-ecommerce plugin or Gold Cart. I disabled all plugins except those two, still not working as it should :(

If you've had a look I'll switch it al back.

Update for anyone contemplating this plugin WP e-Commerce 3.8x dont bother with it. I ended up uninstalling, and downgrading to 3.7.8 that was working fine on another site and now its working. Still an issue or two to sort but working. Had to load all products again, thankfully only 12.

Aaargh hate upgrades!

Memento Vivi Jul 2, 2011 11:19 AM

The post of edwardmccaughan almost did the trick for me...

I wanted the category-page to have a grid-view. So I used edwardmccaughan's file and copy-pasted the content of the grid_view into his file.
I uploaded the new file: http://www.memento-vivi.com/images/t...egory.php_.zip

The only two things that are missing, are the page numbering and the fact that the page is showing all the products of the category instead of showing the quantity of products that I have set in the back end of the store. But I can live without that... I am very happy with edwardmccaughan's post! Many thanks!

Jam Jul 3, 2011 01:57 AM

I think pagination is only visible if you have a certain number of products to list on that page. ie less than products per page (set in Shop), and no page numbers will show.

I found the settings sometimes confusing, ended up changing one at a time, seeing the result and then I knew what they actually do, and how they effect other settings. Theres a lot of plug n play to get the final look you are after. This one isn't open to the public yet, but I'm very happy with layout and function etc now ATA/WP-eCommerce site

doubleclic Aug 16, 2011 11:14 AM

Thanks very much to EdwardMcCaughan. I had the problem where when i clicked on a category to get a list of products in it displayed all I got were the product titles and the additional description field. I dropped the 2 files provieded by Edward in to my themes/Atahualpa364 folder and it all worked. Wish I had found this earlier.

kamuzon Aug 28, 2011 04:45 PM

I had the same problem with WP 3.2.1, WP e-Commerce 3.8.6 and Atahualpa 3.6.7.
Until I use solution by EdwardMcCaughan.

But now only image from first item on category page zoom in to full window view. On second is javaScript error.
How could I fix it?
Thanks.

aehageman Jan 5, 2012 06:13 PM

I think I am having a similar issue
Atahualpa 3.7.3
WP e-Commerce Version 3.8.7.4

The default category works correctly.
http://ozarkbikershop.com/?wpsc_prod...oduct-category


The second category does not work
http://ozarkbikershop.com/?wpsc_prod...ory-of-patches


Both have the same products assigned to them.

WP e-commerce answer to this is get another theme.
http://getshopped.org/forums/topic/l...atahualpa-3-8/

I put in files from edwardmccaughan and the issue slightly improved. The default category now works. Any other category created is blank except the work subcategory.

If there is information leading to a solution please let me know..

Thanks


All times are GMT -6. The time now is 09:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.