-
Notifications
You must be signed in to change notification settings - Fork 23
Using product compare
Gunjan Patel edited this page May 20, 2016
·
2 revisions
$compare = new RedshopProductCompare();
// Prepare Item
$item = new stdClass;
$item->productId = $productId;
$item->categoryId = $categoryId;$compare->addItem($item);// Remove specific item
$compare->deleteItem($item);
// Remove all
$compare->deleteItem();$html = $compare->getAjaxResponse();$total = $compare->getItemsTotal();
// Check if it empty
$compare->isEmpty();$list = $compare->getItems();$compareCategoryId = $compare->getCategoryId();- Home
- Developer
- How to get Config variable
- Product
- Validate AJAX Request
- Render JLayout or redSHOP Layout
- redSHOP Joomla Plugin Architecture Types
- Creditcard Payment Gateway List
- History of redSHOP Checkout Flow
- redSHOP 1.x series development decisions
- RedSHOP for Joomla 2.5 guidelines
- redSHOP Payment Gateway Sandbox Details
- redSHOP Shipping API Test Details