Jump to content

[Commerce] - Add to cart link ?


LBU

Recommended Posts

Hello,

How create a link "Add to cart" on my website ?

Like IPS3 :

<a href="/forums/index.php?app=nexus&module=payments&section=store&do=add&id=19&k=<?php echo $registry->member()->form_hash; ?>&ref=store">Buy</a>

In IPS4, I try :

<a href="<?php echo \IPS\Http\Url::internal( 'app=nexus&module=store&controller=cart&added=19', 'front', 'store_cart' ); ?>">Buy</a>

But my cart is empty..

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...