Author Topic: Weird prices after update  (Read 1689 times)

Offline zirzy

  • Posts: 171
Weird prices after update
« 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?



 

Offline zirzy

  • Posts: 171
Re: Weird prices after update
« Reply #1 on: August 26, 2016, 12:19:34 PM »
I found this from the source which was effecting the price field:

Code: [Select]
<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?


Offline crnogorac081

  • Posts: 1933
  • Gender: Male
Re: Weird prices after update
« Reply #2 on: August 26, 2016, 03:27:00 PM »
js is recalculatign prices if you have options :D for example like here

no bb in signature

Offline zirzy

  • Posts: 171
Re: Weird prices after update
« Reply #3 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?


Offline crnogorac081

  • Posts: 1933
  • Gender: Male
Re: Weird prices after update
« Reply #4 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.
no bb in signature

Offline zirzy

  • Posts: 171
Re: Weird prices after update
« Reply #5 on: August 29, 2016, 01:21:12 PM »
Sounds good (Y) (Y) Backend bootstrap sounds good too (Y)

 

postern-length