Created
November 13, 2017 09:32
-
-
Save ae-elaine-axis/73384f39f509c2aa57d415f61b4a256b to your computer and use it in GitHub Desktop.
Expand wholesale prices by default (outdated?)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| An HTML/JS snippet for Ecwid to display wholesale pricing block (bulk pricing) explanded by default on the product detail pages | |
| Put this code after Ecwid integration code on your site | |
| --> | |
| <script src="https://code.jquery.com/jquery-1.11.3.js"></script> | |
| <script type="text/javascript"> | |
| Ecwid.OnPageLoaded.add(function(page){ | |
| if (page.type == "PRODUCT") { | |
| setTimeout( | |
| function () { | |
| jQuery(".ecwid-productBrowser-details-wholesale-qty").first().trigger('click'); | |
| }, | |
| 1000 | |
| ); | |
| } | |
| }) | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment