Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

30knees

Base unit price / unit price module

Recommended Posts

Version 1.7.11 of this module https://addons.prestashop.com/en/sizes-units/5756-basicprice-unit-price.html is compatible with TB 1.0.1.

The module calculates the base unit price, e.g. what the 100g price of something is that is sold as a 250g pack.

Share this post


Link to post
Share on other sites

Are there any console errors for the javascript? Also did you use 1.0.6?

Share this post


Link to post
Share on other sites

Hello,

I am the developer of the module. Does 1.0.7 base on the Prestashop 1.7 ? If so the module was adapted to handle the new handling. It does not use JavaScript anymore for the calculation. It now uses special hooks which must be integrated into the template on the places the price shall be displayed. So please try to upgrade the module to the latest version 1.7.22 and make the hook adaptions described in the modules readme.

Hope this helps.

Regards

Share this post


Link to post
Share on other sites

Oddly enough, now it's working again. Strange ... maybe something with the cache?

@Agossi Great to see you here!

Share this post


Link to post
Share on other sites

It could also be a timing issue in the old module version. If the price was not totally available, or caching issue. But you can also upgrade the module to 1.7.21 the last tested version with 1.6. Prestashop

Share this post


Link to post
Share on other sites

I´m using TB 1.0.5 (not a live shop at the moment, still testing....) and there are no problems with standard TB installation, no extra module for base unit price is used:

€ 21.99 Tax included Shipping excluded € 21.99 per 1 l (its for a 1 liter bottle)

€ 15.59 Tax included Shipping excluded € 31.18 per 1 l (for a 500ml bottle)

Share this post


Link to post
Share on other sites

Thanks, both. It doesn't show up for me, though. Neither in Panda nor Community Theme. Does one have to activate it somewhere?

Share this post


Link to post
Share on other sites

Thanks! That helped troubleshoot the problem. My products all have combinations and no parent product with a price. What I do is have the parent price at 0 and only enter the combination prices. And if the parent price is 0 it doesn't show the price per unit. So, what I would need to do is one of the following: 1. Add a proper parent product and a parent price and reduce the amount of combinations. 2. Add a minimal parent product price of 0.01 and reduce the combination prices by 0.01 so it evens out.

Share this post


Link to post
Share on other sites

Fiddled around a bit and it seems to be a hassle to have to have a parent product and price. So I'll stick with the basis price module.

@Traumflug Would it be possible to have the basis price calculated based on combinations only where there is no parent product?

Share this post


Link to post
Share on other sites

Hi @Agossi, I noticed that the base price module works for German but not for English. For English, it always shows a base price of 0.00. Do you have an idea how to trouble shoot this? Otherwise the module is still working great, highly recommended. Thanks!

Share this post


Link to post
Share on other sites

Which module version are you using?

Are you getting some JavaScript issues?

Still using old module or the latest?

Share this post


Link to post
Share on other sites

Thank you for your quick reply.

I'm using 1.7.11.

I don't think I'm getting any relevant JavaScript issues. The English and German versions both show me this in the console, but German works:

jquery-1.11.0.min.js:4 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.

What might affect just one language version? The module works.

Share this post


Link to post
Share on other sites

Quick update, the latest version solved the problem. Module works brilliantly again. Highly recommended module and great service, too! Thank you, @Agossi!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...