X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Kube, Balinor, ANyone, PLease help, saerch, featured items, and bestellers issues (https://forum.x-cart.com/showthread.php?t=38809)

toolexperts 04-03-2008 11:50 AM

Kube, Balinor, ANyone, PLease help, saerch, featured items, and bestellers issues
 
When clicking on any item from these three points it sells you the wrong item...any suggestions would be greatly appreciated

kube 04-03-2008 12:04 PM

Re: Kube, Balinor, ANyone, PLease help, saerch, featured items, and bestellers issues
 
Hi toolexperts,

Well you had it right just a moment ago and now I can see you're changing the code. It was adding to the cart perfectly, with the right items as well. Approx 5 minutes ago with url modifier as well.

Now I can see errors in some of the urls and it's not adding to the cart.

Don't panic - deep breaths. Make sure everything was backed up - don't close anything that could be solved with a few undos, etc.

kube 04-03-2008 12:20 PM

Re: Kube, Balinor, ANyone, PLease help, saerch, featured items, and bestellers issues
 
Not sure if you've put it back again - but everything appears to be fine.

Elaborate when you've come back to the original problem.

toolexperts 04-04-2008 04:45 AM

Re: Kube, Balinor, ANyone, PLease help, saerch, featured items, and bestellers issues
 
here is what's happening, if you go to the site and click on one of the featured items (renamed only on the top bar as monthly specials) and then go to add to cart when the item pulls up, you will see what i am talking about, it takes you to another item instead of selling you the correct item. The same issue appears in the bestsellers too, but only on the main page. When clicking on the bestsellers in a department it works correctly, so i am assuming something on the main page is messed up.


EDIIT: This is also occuring when searching for an item and then trying to add it to cart

toolexperts 04-04-2008 07:40 AM

Re: Kube, Balinor, ANyone, PLease help, saerch, featured items, and bestellers issues
 
when it displays the wrong item i see err in the url area

kube 04-04-2008 08:12 AM

Re: Kube, Balinor, ANyone, PLease help, saerch, featured items, and bestellers issues
 
1 Attachment(s)
Hi toolexperts,

Are you referring to the columns rather than the actual main areas? Then maybe something is up... However, I did notice rogue bracers appearing from those links when I selected the text. Not too sure at this moment if it has anything to do with it? See Attached...

toolexperts 04-04-2008 08:35 AM

Re: Kube, Balinor, ANyone, PLease help, saerch, featured items, and bestellers issues
 
Actually here is what i am talking about When clicking on the monthly special (featured item) it takes you to it's page, but when you try to add to cart you get the wrong item
http://216.75.30.97/skin1/images/wtf.JPG

kube 04-04-2008 09:25 AM

Re: Kube, Balinor, ANyone, PLease help, saerch, featured items, and bestellers issues
 
Hi again toolexperts - I see what you mean now ;D

You have 2 the same pages; one that works and the other doesn't.

Working:
http://216.75.30.97/work-and-safety-apparel/rain-gear/60-rain-coat/r4160.html
Not working:
http://216.75.30.97/product.php?productid=17345

At the moment I have no ideas what could be causing this.

The only difference between those two pages is that the working one contains this...
<input type="hidden" name="cat" value="326" />
And the one that doesn't work contains no value for cat...
<input type="hidden" name="cat" value="" />

Find out why that number has been omitted and it should add to cart.

kube 04-04-2008 09:29 AM

Re: Kube, Balinor, ANyone, PLease help, saerch, featured items, and bestellers issues
 
okay figured something out... the url that you are passing to the page has the wrong 'cat' id number...

This works:
http://216.75.30.97/product.php?productid=17345&cat=326&page=1
Your original url from the home page doesn't - it's passing a 0
http://216.75.30.97/product.php?productid=17345&cat=0&page=1

Hope this gets you closer

toolexperts 04-04-2008 09:38 AM

Re: Kube, Balinor, ANyone, PLease help, saerch, featured items, and bestellers issues
 
where should i be looking to rectify this? should i maybe pul the items out of the department and try redoing them?

kube 04-04-2008 09:53 AM

Re: Kube, Balinor, ANyone, PLease help, saerch, featured items, and bestellers issues
 
What file are you calling to produce the those items? Is it customer/main/products.tpl or have you replicated the file and used it to fashion it your own way?

toolexperts 04-04-2008 10:06 AM

Re: Kube, Balinor, ANyone, PLease help, saerch, featured items, and bestellers issues
 
It's actually the mod for the featured items that allows it to display on the right bar

kube 04-04-2008 10:17 AM

Re: Kube, Balinor, ANyone, PLease help, saerch, featured items, and bestellers issues
 
Ah right ok (x-cart's default featured mod correct?)

If this is so then what happened to the var &featured that gets applied to the end of the url? Although it still will not work with your store, I am just wondering what exactly you have altered.

In your home.tpl file did you call featured items within the TD VertMenuRightColumn like so?...

{include file="customer/main/featured.tpl" f_products=$f_products}

toolexperts 04-04-2008 10:38 AM

Re: Kube, Balinor, ANyone, PLease help, saerch, featured items, and bestellers issues
 
yeah...i figured it out though in the menu_fetured.tpl, in that cat area it was showing just {cat} so I assigned it cat 330...it worked...so now it looks like

<a href=product.php?productid={$f_products[num].productid}&cat={330}&page={$navigation_page}>>
{include file="product_thumbnail.tpl" productid=$f_products[num].productid image_x=75 product=$f_products[num].product tmbn_url=$f_products[num].tmbn_url}
</a>

kube 04-04-2008 10:50 AM

Re: Kube, Balinor, ANyone, PLease help, saerch, featured items, and bestellers issues
 
I'm pretty sure it's something else as it shouldn't be reliant on the cat id for featured items but that was the only difference that was occuring.

Also you should be weary of your code that you're outputting... above you have an extra > after {$navigation_page}>. And for your bestsellers you still have an extra } being printed. If these were to be cleaned up and rechecked you'll probably find out why the options are coming up with errors.

toolexperts 04-04-2008 10:54 AM

Re: Kube, Balinor, ANyone, PLease help, saerch, featured items, and bestellers issues
 
yeah i am looking into it still as my search, and recommended items are doing the same thing...

toolexperts 04-04-2008 11:13 AM

Re: Kube, Balinor, ANyone, PLease help, saerch, featured items, and bestellers issues
 
i cleaned that code up now it's not doing the bestsellers right...funny thing is it's only happening on the main page

toolexperts 04-04-2008 11:34 AM

Re: Kube, Balinor, ANyone, PLease help, saerch, featured items, and bestellers issues
 
I give up...i can't figure it out 3 things are busted...

toolexperts 04-04-2008 12:19 PM

Re: Kube, Balinor, ANyone, PLease help, saerch, featured items, and bestellers issues
 
if someone could give me some possible files that may be causing the issue I can look at them

kube 04-04-2008 12:30 PM

Re: Kube, Balinor, ANyone, PLease help, saerch, featured items, and bestellers issues
 
What about comparing them to the original files you have. Say, in /skin1_original or the files that you started with?

toolexperts 04-07-2008 05:15 AM

Re: Kube, Balinor, ANyone, PLease help, saerch, featured items, and bestellers issues
 
i looked there is some difference but the pages work outside of the main.tpl

like the best sellers, they work whenever the featured items arent there and my search does the same thing...i am sinking fast here

toolexperts 04-07-2008 07:06 AM

Re: Kube, Balinor, ANyone, PLease help, saerch, featured items, and bestellers issues
 
since it's not working this way...i am curious if I can just code my own html into it...

toolexperts 04-07-2008 07:30 AM

Re: Kube, Balinor, ANyone, PLease help, saerch, featured items, and bestellers issues
 
ok....if i pull the featured items off the right side menu, and just allow the bestsellers to be there, it works fine...so now I need to know how to make the bestsellers and the featured items coexist on the right column


All times are GMT -8. The time now is 10:01 AM.

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