The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.
 
 
Thread Tools Display Modes
  #1  
Old 08-04-2012, 11:06 PM
jgkiefer's Avatar
jgkiefer jgkiefer is offline
 
Join Date: Aug 2012
Posts: 1
Default Bulk discount pricing display

I am using the Bulk discount pricing feature and offer discounts at many levels. Currently you must click on the Bulk discount price to expand the window to see all the discount tiers.

How do I set the Bulk discount pricing window to display all the levels by default instead of on click?
The Following User Says Thank You to jgkiefer For This Useful Post:
  #2  
Old 08-06-2012, 10:45 AM
Maya's Avatar
Maya Maya is offline
Ecwid Team
 
Join Date: Feb 2010
Location: Ecwid headquarter
Posts: 5,876
Default

Quote:
Originally Posted by jgkiefer View Post
I am using the Bulk discount pricing feature and offer discounts at many levels. Currently you must click on the Bulk discount price to expand the window to see all the discount tiers.

How do I set the Bulk discount pricing window to display all the levels by default instead of on click?
In order to show full bulk price list by default, you should add following code on the page, where Ecwid is installed:
Code:
<script type="text/javascript">
Ecwid.OnPageLoaded.add(function(page){
    if (page.type == "PRODUCT") {
        setTimeout(function () {
			  	var $el = $(".ecwid-productBrowser-details-wholesale-qty");
					if ($el.length) {
						$el.first().trigger('click');
					}
				}, 1000);
    }
})
</script>
Please, note that this script require jQuery library installed for its correctly work. In order to install it to your site you should add following code before </head> tag:
Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
If you have any questions, please, feel free to ask.
__________________
Maya N., Ecwid Team

------------------
Welcome to our new Help Center!

Last edited by Clara K; 01-12-2015 at 09:24 AM.
The Following 2 Users Say Thank You to Maya For This Useful Post:
Flower Essences (07-16-2013), jgkiefer (08-06-2012)
  #3  
Old 12-10-2012, 10:12 PM
Costco Print Sign's Avatar
Costco Print Sign Costco Print Sign is offline
 
Join Date: Jul 2012
Posts: 17
Default Full Bulk Pricing Display CSS

Quote:
Originally Posted by Maya View Post
In order to show full bulk price list by default, you should add following code on the page, where Ecwid is installed:
Code:
<script type="text/javascript">
Ecwid.OnPageLoaded.add(function(page){
    if (page.type == "PRODUCT") {
        setTimeout(function () {
			  	var $el = $(".ecwid-productBrowser-details-wholesale-qty");
					if ($el.length) {
						$el.first().trigger('click');
					}
				}, 1000);
    }
})
</script>
I'm working in Google Sites which doesn't allow javascript to be added to the page. Can I display the full bulk pricing for every product in the store (that bulk applies to) through CSS?

Last edited by Clara K; 02-12-2015 at 03:38 PM.
  #4  
Old 12-11-2012, 09:54 AM
Matt Ecwid's Avatar
Matt Ecwid Matt Ecwid is offline
Ecwid Team
 
Join Date: Oct 2011
Posts: 4,947
Default

Quote:
Originally Posted by Costco Print Sign View Post
I'm working in Google Sites which doesn't allow javascript to be added to the page. Can I display the full bulk pricing for every product in the store (that bulk applies to) through CSS?
No, it is not possible, unfortunately.
__________________
Matt K
Ecwid Team

Ecwid Guide for Beginners

Ecwid Help Center

Ecwid video tutorials
The Following User Says Thank You to Matt Ecwid For This Useful Post:
Costco Print Sign (12-11-2012)
  #5  
Old 08-16-2012, 12:35 AM
Reliant's Avatar
Reliant Reliant is offline
 
Join Date: Jan 2012
Posts: 9
Default

I am trying to do the same thing but have not been successful. I am using Ecwid on a Joomla website. I have added the script to the template's <head> section as follows:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>

I then tried adding the remainder of the code to the store page itself via a module, then to the template in the head, then in the body section. There must be something simple that I am doing wrong.

Would you need to have the code you provided within script tags as well? Or PHP tags? Or is there something else that I am missing? Thanks!!!

Ecwid.OnPageLoaded.add(function(page){
if (page.type == "PRODUCT") {
$("div.ecwid-productBrowser-details-wholesale").click();
}
})
  #6  
Old 08-16-2012, 08:25 AM
Maya's Avatar
Maya Maya is offline
Ecwid Team
 
Join Date: Feb 2010
Location: Ecwid headquarter
Posts: 5,876
Default

You should place this code into the source page, where Ecwid store is installed.

This is the Javascript code, therefore it should be placed inside <script></script> tags (I'm sorry that I have not mentioned about it in my previous post):
Code:
<script type="text/javascript">
Ecwid.OnPageLoaded.add(function(page){
    if (page.type == "PRODUCT") {
        setTimeout(function () {
			  	var $el = $(".ecwid-productBrowser-details-wholesale-qty");
					if ($el.length) {
						$el.first().trigger('click');
					}
				}, 1000);
    }
})
</script>
Please, refer to this article for details how to add Javascript in Joomla: http://kb.ecwid.com/w/page/51601760/...%20in%20Joomla
__________________
Maya N., Ecwid Team

------------------
Welcome to our new Help Center!

Last edited by Clara K; 02-12-2015 at 03:37 PM.
The Following User Says Thank You to Maya For This Useful Post:
Reliant (08-28-2012)
  #7  
Old 08-28-2012, 05:04 AM
Reliant's Avatar
Reliant Reliant is offline
 
Join Date: Jan 2012
Posts: 9
Default

Thank you. That worked. My error was adding the script to a hidden module. Works great now as per your instructions.
  #8  
Old 09-27-2012, 02:14 PM
Stress Diaries's Avatar
Stress Diaries Stress Diaries is offline
Junior Member
 
Join Date: Jun 2011
Posts: 16
Default I am having the same problem...

I have a joomla powered site and use 'mod_jtricks_custom_advanced' to embed the Ecwid code' on the page. I have inserted inserted the code into the 'script' tages, but it is more confusing as there are a number of 'script' tags - and not sure where exacatly in the code it is to be placed. I have tried it and does not work...

You can see it here: http://www.stressdiaries.com/index.p...oduct=15135008

Please help
  #9  
Old 09-28-2012, 10:40 AM
Matt Ecwid's Avatar
Matt Ecwid Matt Ecwid is offline
Ecwid Team
 
Join Date: Oct 2011
Posts: 4,947
Default

Quote:
Originally Posted by Stress Diaries View Post
I have a joomla powered site and use 'mod_jtricks_custom_advanced' to embed the Ecwid code' on the page. I have inserted inserted the code into the 'script' tages, but it is more confusing as there are a number of 'script' tags - and not sure where exacatly in the code it is to be placed. I have tried it and does not work...

You can see it here: http://www.stressdiaries.com/index.p...oduct=15135008

Please help
Hi,

I've inspected your store. The reason of the script not working is that some 3d-party plugin or theme's functions on your page redefine the jQuery variable ($).

In the code of modification discussed in this thread, there is a line that find the wholesale prices element on the page and call the click event for it:
Code:
$("div.ecwid-productBrowser-details-wholesale").click();
The '$' character is a short name for jQuery. In your case, the '$' is not linked with jQuery and thus it doesn't work. In order to fix it, please use 'jQuery' instead of '$'. The whole code will look as follows:
Code:
<script type="text/javascript">
Ecwid.OnPageLoaded.add(function(page){
    if (page.type == "PRODUCT") {
        setTimeout(function () {
			  	var $el = $(".ecwid-productBrowser-details-wholesale-qty");
					if ($el.length) {
						$el.first().trigger('click');
					}
				}, 1000);
    }
})
</script>
__________________
Matt K
Ecwid Team

Ecwid Guide for Beginners

Ecwid Help Center

Ecwid video tutorials

Last edited by Clara K; 02-12-2015 at 03:37 PM.
The Following User Says Thank You to Matt Ecwid For This Useful Post:
Stress Diaries (09-29-2012)
  #10  
Old 09-29-2012, 12:33 PM
Stress Diaries's Avatar
Stress Diaries Stress Diaries is offline
Junior Member
 
Join Date: Jun 2011
Posts: 16
Default

Hey Matvey

Thank you much - it is working fantastically...
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Tags
bulk pricing, wix

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:00 PM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.