T
T
trubav2015-08-11 12:33:09
PHP
trubav, 2015-08-11 12:33:09

Joomshopping how to display the product label label in the cart?

I decided to add a product label through the add function in the cart.php model, pulled out the code from the product.php model, but so far it's nonsense. How to add tag data for a specific product when adding to cart? Or tell me any other solutions that display product tags in the cart.

$label_id = JRequest::getInt("label_id");
$count_product_to_row = $jshopConfig->count_products_to_row_label;
$contextfilter = "jshoping.list.front.product.label";
$filters = getBuildFilterListProduct($contextfilter, array());
$rows = $product->getProductLabel($label_id, $jshopConfig->count_products_to_page_label, null, $filters);
addLinkToProducts($rows, 0, 1);
$temp_product['product_label'] = $rows;

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question