WebsiteBaker Community Forum (upd)

WebsiteBaker Support (2.8.x) => Bakery Shop => Topic started by: zirzy on August 24, 2016, 01:51:34 PM

Title: Weird prices after update
Post by: zirzy on August 24, 2016, 01:51:34 PM
Hi,

Weird prices after update in view item page.

Here everything is ok:
http://www.tooltek.net/pages/fi/kauppa.php

But here in the view item page prices are totally weird:
http://www.tooltek.net/pages/bakery/freud-pyoeroeterae-400x4.0x30-z-96-aeaenivaimennus-63.php

How can I fix it?



Title: Re: Weird prices after update
Post by: zirzy on August 26, 2016, 12:19:34 PM
I found this from the source which was effecting the price field:

<script type="text/javascript" src="/modules/bakery/jquery/calc_price.js"></script>
<script type="text/javascript">
$(document).ready(function() {

// Get the price container (must be adapted if html template has been modified)
container     = $('.mod_bakery_item_price_f').parent().next();

// General settings
currency      = 'EUR';
decimal_sep   = '.';
thousands_sep = "'";

// Calculate price on document ready
$('.mod_bakery_item_select_f :selected').calcPrice();

// Calculate price on selcted item option
$('.mod_bakery_item_select_f').change(function() {
$('.mod_bakery_item_select_f :selected').calcPrice();
});
});


I took javascript off from the backend and price is correct again. What is it?

Title: Re: Weird prices after update
Post by: crnogorac081 on August 26, 2016, 03:27:00 PM
js is recalculatign prices if you have options :D for example like here (http://www.promomaterijal.me/usb-memorije/smart-usb)

Title: Re: Weird prices after update
Post by: zirzy on August 29, 2016, 11:48:18 AM
Do you mean if I have options for items? I think there is no options.

How can it be possible to get this just to update older shop (where wasn't this kind of things) to new one? It just popped out?

btw. If your example site is made with bakery, it's nice and responsive. How did you do it, just by fixing templates? And how did you set up that slider on item page?

Title: Re: Weird prices after update
Post by: crnogorac081 on August 29, 2016, 01:02:09 PM
Its pretty much same db design, but its just for listing so far. There are no shopping options yet, because they were not needed at this time.

Also it is coded as tool, not as page module. I will probably publish code after I finish backend bootstrap template.
Title: Re: Weird prices after update
Post by: zirzy on August 29, 2016, 01:21:12 PM
Sounds good (Y) (Y) Backend bootstrap sounds good too (Y)