XF 1.x Xen product manager

maldboy88

Registered
To this....
 

Attachments

  • Capture.PNG
    Capture.PNG
    27.1 KB · Views: 5

Russ

Pixel Exit Staff
This is some basic code:

Code:
<xen:if is="{$product.product_id} == 15">
   <a class="callToAction demoButton" href="#" target="_blank"><span>View Demo</span></a>
   <xen:elseif is="{$product.product_id} == 10" />
   <a class="callToAction demoButton" href="#" target="_blank"><span>View Demo</span></a>
   <xen:elseif is="{$product.product_id} == 9" />
   <a class="callToAction demoButton" href="#" target="_blank"><span>View Demo</span></a>
</xen:if>

We had to hard code each product which was a little annoying :D, a plugin would be best but this was a quick fix.

It can be added to like:xenproduct_product_view

in the <xen:sidebar> code.
 

maldboy88

Registered
Yea an add-on it wild be better if you have alot of products.
But this solution it is cool if you have less products.
The product id is the nr at the end of the url?
 

maldboy88

Registered
Hey @Russ can you tell me please how to add 1 more button?
I added:
Code:
<xen:if is="{$product.product_id} == 1">
  <a class="callToAction demoButton" href="#" target="_blank"><span> Discuss This Product</span></a>
   <xen:elseif is="{$product.product_id} == 1" />
   <a class="callToAction demoButton" href="#" target="_blank"><span>View Demo</span></a>
</xen:if>

but not works.

Thanks in advance
 

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.