Displaying only some attributes in the shopping cart

03.10.2014 03:40
#1
amruffatti
Joomshopping forum user no avatar
Name: Adela
28.04.2014
Posts: 2
Quote
Displaying only some attributes in the shopping cart

We are building a pizza ordering website and acquired your Attributes checkbox module. So far everything's working fine. There's just a small tweak the owner suggested. In the enclosed file you'll see that the list of attributes is very long when it is displayed in the cart. We would like to display only the attributes that were chosen, so that the cook and the other workers don't have to go through the whole list looking for the items that say "Sí".

My idea is to go to /lib/functions.php and around where it says
if (count($atribute)) $html .= '<div class="list_attribute">';
foreach($atribute as $attr){
$dispatcher->trigger('beforeSprintAtributeInCart', array(&$attr) );
select the attribute every time its value is "No" and exclude it from the array.

But that's as far as I get. I don't know enough php syntax to write that without breaking it all up. Can you please add that in for me?
Displaying only some attributes in the shopping cart


Joomla: 3.3.6
JoomShopping: 4.6.1
PHP: 5.3.28
MySQL: 5.6.17
Website Url: pizzaescazu.com
 
03.10.2014 07:53
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16517
Quote
Aw: Displaying only some attributes in the shopping cart

http://www.webdesigner-profi.de/joomla-webdesign/shop/addons/attribute-checkbox.html?lang=en

Aw: Displaying only some attributes in the shopping cart

 
Copyrights MAXXmarketing GmbH. All Rights Reserved