![]() |
Displaying Option Fields Twice in Product listings
Here is the code for the product listing thing.
Code:
<tr> |
Is this a question or a completed modification? Please clearly state what the topic is about. Thank you.
|
Sorry, it's a question. For some reason, the option fields appear twice as can be viewed at www.intercage.com/site/xcart/home.php?cat=249 rather than once. I don't know why it's doing that; the code above only calls the option fields once so the problem is rather peculiar. Any help is appreciated.
|
I'm not seeing that happen on my end.
|
Ram and Hard Drive both appear twice in the description of the items.
|
Hi,
The problem appears to be your foreach loop is being looped more than once but only for the first two items (obvious I know). So the question is what is causing that? Where is $sp_option_classes from? A quick grep -R sp_option_classes * in my codebase says I don't have that variable. Mocara |
I'm editing this template from a pre-made template that had a similar code. I don't know much about x-cart, but I assumed $sp_option_classes came standard. Is there any other way to access your option's fields?
|
I think if you are using non-standard templates, then it would really mean looking at all the code. Sorry I couldn't be more help.
Mocara. |
Thanks for your help. I guess does anyone know the code from the standard template to display the option fields of a product?
|
Also, is there a smarty command from which I can figure out with php script declares the sp_option_classes array?
|
All times are GMT -8. The time now is 02:00 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.