Skip to content

Conversation

@trs998
Copy link

@trs998 trs998 commented Apr 15, 2016

In the event that "add-to-box" is about to be replaced with undefined, just leave it - replacing button with undefined variable removes add to cart button, rendering site useless to customer.

This problem occurred on "awesome" theme - but in general, do not replace perfectly functional button with blank variable. Now makes a check that variable is defined for add to cart button and stock status before replacing existing content. Tested and working - no change to behaviour if variable is loaded correctly.

…n is undefined, do not replace button

This problem occurred on "awesome" theme - but in general, do not replace perfectly functional button with blank variable. Now makes a check agains empty variable for add to cart button and stock status before replacing with garbage. Tested and working - no change to behaviour if variable is loaded correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant