Hi,
The module isn't working with my custom theme. I am using the patched dev version provided to make it work with "Dependant Attributes". It all works wonderfully in garland, but when I enable my custom theme it doesn't replace the form.
Here's how I am displaying the cart in my node-product.tpl.php:
<div id="node-<?php print $node->nid; ?>">
<div id="product">
(...)
<br class="clear">
</div>
<?php print theme('uc_product_add_to_cart', $node); ?>
The generated form seems pretty much the same in both themes.
In HTTPFox, I can see all the data being sent via POST to the server and back. AJAX is working as expected in both themes, sending the object back with the replacement fields.
However, in my custom theme the form doesn't get replaced at all. It just sits there displaying all the attributes. So it is in a mood of slight desperation that I'm reaching out for help... I really don't know what else I could try.
Regards,
Joao
Comments
Comment #1
amen commentedEDIT: Updated title to reflect issue better.
PS: I am closing the
<div id="node-<?php print $node->nid ?>">After closer inspection, I realized that in garland there are 2 POST communications per option click, while in my theme only one is being sent out. Still no clue how to solve it tho.
Comment #2
cybis commentedIs the form updating with the unpatched dev version or is it just with the patch?
Comment #3
amen commentedIt seems like it updates with both patch and unpatched dev versions, as long as it's garland.
Comment #4
cyu commentedCan you link to the specific patch you are using?
If you have this running at a page open to the public I'll take a look if you PM me or link it here.
Comment #5
amen commentedit's running at bymotions.com/live/node/5 . I've set up "switch theme" in a footer block.
Color "Black/Copper/Silver" has all sizes available while "White/Black/Fire Red" has a few sizes unavailable.
thank you SO MUCH for doing this, btw :)
Comment #6
amen commentedOw forgot to mention the specific version - at the momment it's the 6.x-2.x-dev version i used to test your question in #2.
I also enabled devel and devel theme developer for anonymous users.
Comment #7
cybis commentedFor troubleshooting, what happens if you set the options to have price adjustments? Does the price updates?
Comment #8
amen commentedit updates only if using garland. on my theme it doesn't show the changes in the webpage but adds product to cart with the correct price.
i have added a price change to one of the color options so you can check it yourself.
Comment #9
amen commentedi found out what was happening. I was using a conflicting version of jquery.
Thank you very much for taking the time to look into it.