WebsiteBaker Support (2.8.x) > Bakery Shop
Bakery: Small Shop Module (ORIGINAL TOPIC)
cchhita:
Hi There!
I would just like to say this is a great module!
I am trying to use Item Options and Set my own order of the options, but I cannot do this.
I have products with a choice of the amount i.e.
25 pack
50 pack
100 pack
Because the 100 pack starts with a 1, it is always displayed first! Is there anyway to reorder these items?
Thanks
cchhita:
HI There,
I have dscovered the answer to my above question about reordering Item Options by numeric value!
If you have a list of numeric values, here is how it will look:
100 pack
25 pack
50 pack
75 pack
Here is what you do:
Go to modules/bakery/view.php - MAKE A BACKUP
Look for this code on Line (Approx) 907
--- Code: ---// 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");
--- End code ---
Change to
--- Code: ---// 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");
--- End code ---
Look for this code on Line (Approx) 1167
--- Code: ---$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");
--- End code ---
Change to
--- Code: ---// 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");
--- End code ---
ORDER BY ABS(a.attribute_name) ASC will order items by numeric value, so your list now should look like this:
12 Pack
24 Pack
36 Pack
100 Pack
Hope that helps someone out!
Cheers for the great Module!
masarin:
--- Quote ---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
--- End quote ---
Is there a way to make Bakery use these different email templates (the default email templates) depending on what language you chose for for for a page in a multilingual shop?
Or could it be a feature to be able to turn of the ability to edit the email templates in the Bakery backend, and instead use the default email templates according to a Bakery page language setting.
This would make Bakery multilingal wouldn't it?
snark:
A modification to make the definable fields have a wysiwyg editor
for anyone that might need to ad more than just some words to the definable fields...
wysiwyg function for the definable fields
if I find the time I am going to ad the option to ad both non wysiwyg definable fields and wysiwyg definable field and increase the amount of definable fields a bit
[gelöscht durch Administrator]
idamay:
Hello, My emails (order notifications) are not being sent out in a fresh install of WebsiteBaker and Bakery.
Emails sent from other pages (through a form) are sending ok.
Please advise!!! Thank you!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version