• Hello and thanks for this great plugin
    I was wondering if it is possible at the product page, to suggest to the customers (in the sidebars or as a slider at the bottom of the page or at the cart or checkout page) other products of the same Model (same MMY restrictions) but different category
    For example if a buyer is looking for an exhaust of Suzuki GSXR 1300 2008, if i can suggest him lights or electronics or something else beside exhausts for the specific bike

Viewing 1 replies (of 1 total)
  • Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    You can get all product IDs for the selected Model with code like this:

    
    $pIds = array();
    if (function_exists('Pektsekye_YMM')){
      include_once( Pektsekye_YMM()->getPluginPath() . 'Model/Db.php');		 
      $db =  new Pektsekye_Ymm_Model_Db();
      include_once( Pektsekye_YMM()->getPluginPath() . 'Block/Selector.php');
      $block = new Pektsekye_Ymm_Block_Selector();
    
      $values = $block->getSelectedValues();
      $pIds = $db->getProductIds($values);
    }
    

    Stanislav

Viewing 1 replies (of 1 total)
  • The topic ‘Suggest products from the same model’ is closed to new replies.