[SOLVED] WP e-commerce + ATA = Category Pages broken
WP: 3.4.2
ATA: 3.7.6 Plugins: AnyFont 2.2.3, Magic Zoom 5.9.26, WP e-Commerce 3.8.8.5 Hello all at the forum! I have a weird situation when I installed and set up WP e-commerce (from GetShopped) on a website with an ATA theme. On the category pages, only one product image shows, the rest of the product details show and below I get an error code showing (see LINK, SCREENSHOT and below quote). All other shop pages such as individual items look absolutely fine. I changed back to TwentyEleven theme where the error code is not showing (see SCREENSHOT ), so one could assume it has something to do with ATA. I had a look around on the forum and tried showing full posts rather than excepts and deleted everything in the 'do not strip these tags' to no avail. Also read http://forum.bytesforall.com/showthr...t=13906&page=2 but I am confused what the actual fix is, if any, as some people were still asking without an answer. As this post is over a year old I was also not sure if it was still relevant. As most of the error code showing seems to be AnyFont, I assumed this would disappear when deactivating it, however, other error code was still showing, as well as only one product image showing (see SCREENSHOT ). I then tried deactivating MagicZoom too, which made no change in the error code. Moving back to Twenty Eleven with plugins (apart from WP e-commerce) deactivated showed everything showing without error code and both product images. Does anyone have any idea as to what could be the problem? Thanks ever so much for any help anyone can offer! Full ERROR code: Code:
"Updating cart… |
did you look at http://forum.bytesforall.com/showthread.php?t=18075
|
Quote:
Thanks so much for your reply, no I had not come across that solution. So I tried:
Am I editing the correct index.php? There is on in each folder ie the root, in /wp-content/ and in /wp-content/themes/ Thanks again Juggledad!:) |
the code change does go to the theme's index.php - have you tried shutting off the other plugins after putting in the code?
|
Quote:
However, the title of the page showing is still the title of the first product rather than the title of the category. This extra image at the top is still showing too. I've tried using firebug so I could perhaps set this particular image to display:none, but I can't find any code for it. I then dug deeper and looked into Settings/Store/Presentation and the category image is set to NO, I've also not set an image for the category, so I am not sure where this image is coming from.. Could you have a look with Firebug Juggledad? Perhaps I am missing something? Also, to double check I pasted the code in the correct spot in the index.php, lines 8-13 look like this: Code:
<?php /* If there are any posts: */ |
You also need to apply the change in http://forum.bytesforall.com/showthread.php?t=17880 to fix the right sidebar/footer issue
does the double image also show in twenty-eleven? |
Quote:
No the double image (or the wrong category title) are not showing in twenty-eleven, (see SCREENSHOT) it is all showing as it should... Thanks again for looking, helping AND your quick replies Juggledad! |
Why are you still on 3.7.6?
|
Quote:
Have upgraded now (and made above changes to index.php and footer.php) and unfortunately there is no change... Tried to find the code for image once more and found it: Code:
.post-bodycopy a img.attachment-post-thumbnail{ When adding a product in WP e-Commerce, it works exactly like a post and adding an image is exactly like adding a featured image so it sort of makes sense.. However the product image showing by each product has a different name ie Code:
div.wpsc_default_product_list div.default_product_display div#imagecol_53.imagecol a.thickbox img#product_image_53.product_image I've noticed in firebug that the image is in the a tag above default_products_page_container and it is greyed out.. Thanks Juggledad! |
It looks to me like everything is working properly. I see one image on teh blog page and one image on the products page. Am I missing something?
|
Quote:
BTW you can see the same effect if you click any of the other categories in the sidebar, the difference is that the category I link to has 2 test products whilst the other only have one each |
Ahh I see it now, I was going in via the product, not the category.
so now which image should not be shown, the one on the left or teh one on the right where the shoe is bigger than the frame it is in? this should remove the one on the right HTML Code:
.wpsc-product .post-bodycopy .default_product_display h2.prodtitle {display:none;} |
Quote:
Thanks for your suggestion. Unfortunately the image on the right is the actual product image and your code deletes all product images. Here is a SCREENSHOT (with explanation) to show you what I mean. This is what I see when I go to this LINK. I hope my explanation in the image is making sense.. The code Code:
.post-bodycopy a img.attachment-post-thumbnail{ Thanks again for looking and sorry if I have not been clear enough before |
Go look at the source of the page.
Find teh section for the post look at what is created and see if there is anything you can use to create a specific CSS Selector that will effect these pages and not the normal blog post pages. |
Quote:
Code:
html body.archive div#wrapper div#container table#layout tbody tr#bodyrow td#middle div#post-59.post-59 div.post-bodycopy a img.attachment-post-thumbnail{ The con of doing it this way is that I'd have to do it for each new category my client decides to create, but I guess that is a small hurdle to have to overcome.. What about the category title? adding Code:
<?php if (is_category() ) { ?><h2> <?php single_cat_title(); ?></h2><?php } ?> Thanks again Juggledad! |
You have looked at the WP-eCommerce options? I know there is something there about page/category titles etc
Wp-eCommerce can be a bit of trial and error, turning one option off/on affects another. |
Have you played around with all the shop settings (dashboard->settings->store->presentation)?
|
Quote:
Quote:
Thanks for responding! I thought I had looked, but you are both right, I found another option called "Replace Page Title With Product/Category Name" which sounds absolutely perfect and set it to yes. However, this makes things worse as the title does not change and a new image gets created, it is a none image (linking to nothing) Code:
<img width="HEADER_IMAGE_WIDTH" height="HEADER_IMAGE_HEIGHT" alt="" src=""> I've tried setting this image to display:none too but as it is generic without a class, it switches off all images. Will prob turn this off again unless someone has any more ideas? Maybe you are right Jam and I should play around with the options and switch some others on or off to see if it will work... |
Hi all,
I've had a little breakthrough: updated WPEC from version 3.8.8.5 to 3.8.9 which was a major update. This fixed the Category title issue which is awesome! The extra image was still showing, unless using display:none; for the specific image. I then found out that when adding a new product, this new product's image would become the extra image as the css selector I was using was for that specific thumbnail. I installed a plugin called Ambrosite Body Class Enhanced which adds a class to the body, meaning you can style categories separately, including getting rid of that annoying extra image! Using the below CSS it is now not showing the extra image as well as the extra image staying away when adding new products Code:
.term-category-name a img.attachment-post-thumbnail, .single-wpsc_product_category-category-name a img.attachment-post-thumbnaill{ Very happy with the outcome, however, the AnyFont error code is still showing :-( . I was working on a different e-commerce site this week where the error was showing also, but I was hoping it might disappear when upgrading to Gold Cart and getting a Grid View. Unfortunately, the error code is still showing: LINK It is really odd how it is showing in Firebug : Code:
<div class="product_grid_display group"> It seems to be really persistent and I cannot find a CSS selector to make is display:none, nor can I find anywhere in the AnyFont settings to not show any error code. I am still baffled too, that it is not showing in TwentyEleven theme meaning it must clash somewhere with ATA? I had not had a chance to write to AnyFont yet, but I will do now, as well as to WPEC as it seems to be the combination of the three causing this error code to show :-( Any ideas that anyone might have to fix this issue are VERY welcome! Thanks ever so much for all the help so far Juggledad and Jam :-) |
Update:
I have written to AnyFont and reported it with WPEC by sending an email on their 'Compatibility issues' page. Fingers crossed that someone will figure out what is clashing between ATA, AnyFont and WPEC :) |
Quote:
Although the incompatibility of the combo of plugins with ATA is not solved, at least there is a work-around. For anyone interested, this is the code I used in HTML/CSS inserts (after moving the font files from wp-content/uploads/fonts to my own fonts folder in the root): Code:
@font-face{ I will mark this thread as solved shortly! However, I have noticed another issue which might be related to the above issues and I just want to make sure before I start a new thread for this. I hope Juggledad, Larry or Jam know what this is about: Last night I was happy with the layout so far on my local (WAMP) server and moved the website's folders and files to the live server, exported then imported the database (as I always do without problems) and some of my CSS styling seemed to have no effect, specifically in the header area where I created my own widget area to insert the WPEC live search and the shopping cart (that by default is closed, but can slide open by pressing the 'plus' sign). I had styled both to no end, including position relative and move them around so the search bar is centered and the shopping cart appears to be part of the top menu. I looked to see if it was still present in ATA/HTML/CSS Inserts and it was. To be sure I exported ATA settings from my local site and imported into live site, but it made no difference. I then added !important to every styling to do with the header widgets which also made no difference Then I noticed in firebug that my added styles were not there to be found and when I looked in the HTML section, I could see why: there are extra pieces of code to be found: where it should be Code:
<div id="text-4"> Code:
<div id="/"text-4/""> Any idea why they suddenly appear? I also found that I cannot style these either, even using the new class and the old class: Code:
/*adding a magnifying glass to live search widget*/ My client really wanted to be live by Monday and I am now starting to slightly panic.. Thanks in advance everyone for your help! |
see if you have 'magic quotes' turned on in your PHP, if so turn them off.
You can check this by editing index.php and adding 'phpinfo();' after the line HTML Code:
global $bfa_ata_postcount; |
THANK YOU JUGGLEDAD
for you super quick reply! I did as you said, however, what do you mean by Quote:
That brings a fatal error. going to the home page I see no change and the 'magic quotes' are still there. So I did a little research on Google and created a php file with the single line of code you mentioned and put it on my server I can see the line '--enable-magic-quotes', which I assume means it is enabled. You are saying by disabling this it would solve my problem? I looked in my cPanel for options on changing it, but you are right: "These PHP configuration settings are customizable by the server administrator." Thank you so much for your help Juggledad, fingers crossed this will solve it! |
Quote:
Don't it always seem to go that another problem pops up when one has been solved.. The Shopping Cart link is not working on the live site (it is on the local one) Nothing happens when clicked, whilst it should look like this SCREENSHOT. Could this be a PHP problem too? Sorry to spring another on you... |
I notice there are no prices on anything is that right?
try disabling the plugin - then reenable it to see if something is 'not connected'. I see that it is calling a jscript it also seems that the add to cart doesn't work |
All times are GMT -6. The time now is 05:19 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.