I have a button on an affiliate site that I'd like to add to my personal site. On the affiliate site that visitor would have multiple choices of products, and I want to focus directly on only one product.
Here is my button:
<button aria-disabled="false"
role="button"
id="fsDataGrid:1:addPack2Cartfs"
name="fsDataGrid:1:addPack2Cartfs"
class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only joinAddToCart add-to-cart button right"
onclick="PrimeFaces.ab({s:"fsDataGrid:1:addPack2Cartfs",u:"submenu miaccountMenu cartBtn cartItems contentTitleForm mainForm"});return false;"
type="submit">
<span class="ui-button-text ui-c">Add to Cart</span>
</button>
When the visitor clicks on the button it loads the product into the cart. The URL of the cart only contains /myaffiliateid/language/checkout/join (/14dayreset/en/checkout/join
).
So on my site, I'd like to have a single button that will load the above product directly into the cart with my affiliate ID.
I hope I'm making sense, as I've never really seen a button code like this before.
Any help would be appreciated.
Kindest Regards Pattie