1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Product Manager Tips & Tricks

Discussion in 'General Discussion and Feedback' started by paradoxG(r)eek, Feb 15, 2017.

  1. paradoxG(r)eek

    paradoxG(r)eek New Member Xen Product Manager

    Hello all users of Product Manager,

    Most of the solutions below are replies from @Chris D whom I thank for his superior support. I just wanted to put them all together in case that someone is interesting on them. But the first one is mine :)

    If you want to have a demo link in the product main page between "More info.." and "Add to Cart".

    Solution (needs some experiance)
    • With phpMyAdmin add to xenproduct_product table a new field:
      • Name: product_demo
      • Type: VARCHAR
      • Length/Values: 255
    • Still with phpMyAdmin edit your products and set demo links (if any)
    • Open template: xenproduct_product_list_item
    Find:
    Code:
    <div class="productButtons">
         <a href="{xen:link 'products', $product}" class="button">
              {xen:phrase xenproduct_more_info}...
          </a>
          <xen:if is="{$product.canBuyProduct}">
               <a href="{$product.cartLink}" class="button AddToCart NoDisable" data-extras="{xen:if '{$product.optionalExtras}', 'true', 'false'}">
               {xen:phrase xenproduct_add_to_cart}
                </a>
           </xen:if>
    </div>
    
    Replace with:
    Code:
    <div class="productButtons">
         <a href="{xen:link 'products', $product}" class="button">
              {xen:phrase xenproduct_more_info}...
          </a>
          <xen:if is="{$product.product_demo}">
               <a target="_blank" href="{$product.product_demo}" class="button">&nbsp;VIEW DEMO&nbsp;</a>
          </xen:if>
          <xen:if is="{$product.canBuyProduct}">
               <a href="{$product.cartLink}" class="button AddToCart NoDisable" data-extras="{xen:if '{$product.optionalExtras}', 'true', 'false'}">
               {xen:phrase xenproduct_add_to_cart}
                </a>
           </xen:if>
    </div>
    
    After saving the template you'll see the Demo link between the other two. If there is no demo, then the normal 2 buttons will be shown.

    If you want to move "Products" tab to be even before Forums:
    • With a text editor like Notepad (NO Word or any other wordproccessing editors) open the file: upload/library/XenProduct/Listener.php
    • Find: 'position' => 'middle', (Now is on the line 76)
    • Replace with: 'position' => 'home',

    If you don't like the product's thumnail to appear in Image Gallery

    Edit the template "xenproduct_product_details"

    Find:
    Code:
    <xen:if is="{$attachment.thumbnailUrl}">
    
    Replace with:
    Code:
    <xen:if is="{$attachment.thumbnailUrl} AND {$attachment.attachment_id} != {$product.product_thumbnail}">
    
    That's for the moment ;)
     
    Chris D likes this.
  2. paradoxG(r)eek

    paradoxG(r)eek New Member Xen Product Manager

    If you've products with zero price and you want to display something like "FREE!!" instead of Price: 0.00 USD

    1.- Open template: xenproduct_product_list_item

    2.- Find:
    Code:
    <span class="price">{$product.displayPrice}</span>
    
    3.- Replace with:
    Code:
    <xen:if is="{$product.price}==0">
        <span class="price">FREE!!</span>
    <xen:else />
        <span class="price">{$product.displayPrice}</span>
    </xen:if>
    
    Example: Products | paradoxBB ;)
     
    Chris D likes this.

Share This Page