WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Weird prices after update
  • Print
Pages: [1]   Go Down

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

Offline zirzy

  • Posts: 178
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?



 
Logged

Offline zirzy

  • Posts: 178
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?

Logged

Offline crnogorac081

  • Posts: 2161
  • 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

Logged
Web developer

Offline zirzy

  • Posts: 178
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?

Logged

Offline crnogorac081

  • Posts: 2161
  • 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.
Logged
Web developer

Offline zirzy

  • Posts: 178
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)
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Weird prices after update
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2