| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Displaying Option Fields Twice in Product listings | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Here is the code for the product listing thing.
Code:
__________________
Version 4.0.9 |
|||||||
#2
|
|||||||
|
|||||||
![]() Is this a question or a completed modification? Please clearly state what the topic is about. Thank you.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() 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.
__________________
Version 4.0.9 |
|||||||
#4
|
|||||||
|
|||||||
![]() I'm not seeing that happen on my end.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() Ram and Hard Drive both appear twice in the description of the items.
__________________
Version 4.0.9 |
|||||||
#6
|
|||||||
|
|||||||
![]() 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
__________________
4.0.15 Linux |
|||||||
#7
|
|||||||
|
|||||||
![]() 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?
__________________
Version 4.0.9 |
|||||||
#8
|
|||||||
|
|||||||
![]() 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.
__________________
4.0.15 Linux |
|||||||
#9
|
|||||||
|
|||||||
![]() Thanks for your help. I guess does anyone know the code from the standard template to display the option fields of a product?
__________________
Version 4.0.9 |
|||||||
#10
|
|||||||
|
|||||||
![]() Also, is there a smarty command from which I can figure out with php script declares the sp_option_classes array?
__________________
Version 4.0.9 |
|||||||
|
|||
X-Cart forums © 2001-2020
|