WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
// Get item attributes$query_attributes = $database->query("SELECT o.option_name, a.attribute_name, ia.attribute_id, ia.price, ia.operator FROM ".TABLE_PREFIX."mod_bakery_options o INNER JOIN ".TABLE_PREFIX."mod_bakery_attributes a ON o.option_id = a.option_id INNER JOIN ".TABLE_PREFIX."mod_bakery_item_attributes ia ON a.attribute_id = ia.attribute_id WHERE item_id = $item_id AND ia.option_id = '$option_id' ORDER BY o.option_name, a.attribute_name ASC");
// Get item attributes$query_attributes = $database->query("SELECT o.option_name, a.attribute_name, ia.attribute_id, ia.price,ia.operator FROM ".TABLE_PREFIX."mod_bakery_options o INNER JOIN ".TABLE_PREFIX."mod_bakery_attributes a ON o.option_id = a.option_id INNER JOIN ".TABLE_PREFIX."mod_bakery_item_attributes ia ON a.attribute_id = ia.attribute_id WHERE item_id = $item_id AND ia.option_id = '$option_id' ORDER BY ABS(a.attribute_name) ASC");
$query_attributes = $database->query("SELECT o.option_name, a.attribute_name, ia.attribute_id, ia.price, ia.operator FROM ".TABLE_PREFIX."mod_bakery_options o INNER JOIN ".TABLE_PREFIX."mod_bakery_attributes a ON o.option_id = a.option_id INNER JOIN ".TABLE_PREFIX."mod_bakery_item_attributes ia ON a.attribute_id = ia.attribute_id WHERE item_id = ".ITEM_ID." AND ia.option_id = '$option_id' ORDER BY o.option_name, a.attribute_name ASC");
// Get item attributes$query_attributes = $database->query("SELECT o.option_name, a.attribute_name, ia.attribute_id, ia.price, ia.operator FROM ".TABLE_PREFIX."mod_bakery_options o INNER JOIN ".TABLE_PREFIX."mod_bakery_attributes a ON o.option_id = a.option_id INNER JOIN ".TABLE_PREFIX."mod_bakery_item_attributes ia ON a.attribute_id = ia.attribute_id WHERE item_id = ".ITEM_ID." AND ia.option_id = '$option_id' ORDER BY ABS(a.attribute_name) ASC");
These are the default email templates. Bakery uses the default WB language setting to determine which email template will be saved in the database for later modifications.Regards Christoph
HiNeed some directions about how to create (translate and save) language files.It's the "Payment Methods" -files that are bugging me. The standard Bakery language file works both ways described below. If I upload the files with Swedish ÅÄÖåöä they get to look strange in the e-mails that are sent out to customers and shop owners.If I upload the files with the HTML equivalents for ÅÄÖåäö (å ä etc) Bakery stops working and It gets impossible to add any item to the cart and I get the error:Not FoundThe requested URL /musite/pages.php was not found on this server.Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.I have saved all files in utf-8Regards masarin
I think this has to do with allowed special characters - you have to define which special characters are allowed:(in your case i suppose) in file bakery/languages/SE.php $MOD_BAKERY['ADD_REGEXP_CHARS'] = 'ÄÖÜäöüß';make sure the file is encoded the same as your WB installation.Hope this helps!
$f_price = number_format($items[$i]['price'], 2, $setting_dec_point, $setting_thousands_sep);
$f_price = number_format($items[$i]['quantity'] * $items[$i]['price'], 2, $setting_dec_point, $setting_thousands_sep);
$f_shipping = number_format($items[$i]['shipping'], 2, $setting_dec_point, $setting_thousands_sep);
$f_shipping = number_format($items[$i]['quantity'] * $items[$i]['shipping'], 2, $setting_dec_point, $setting_thousands_sep);
Is it possible to add a gift coupon function to this module??
Is there any way to add Sage Pay as additional payment gateway?
Hi PeetersQuote from: Peeters on August 18, 2009, 10:37:52 AMIs it possible to add a gift coupon function to this module??Not by default. All features are listed at the >> Bakery website.Regards Christoph