E-Commerce: Current assetid in receipt order


(Markos) #1

Matrix Version:
5.4.0.3

Hello,

I have the following structure:

Product (Folder) (assetid: 268)
| ~ Item (Standard Page) (assetid: 272)

Order (Ecommerce Form Page) (assetid: 216)
| ~ Ecommerce Form Contents (Id: 217)
... | ~ Bodycopies
....... | ~ Receipt (Id: 225)

Receipt (Id: #225)
Outputs assetid 217 not 272
%asset_assetid%

This does not work
%begin_asset_assetid^eq:272%
Download Link
%end_asset%

Question: How do I get the current ordered assetid not order id in the receipt page? I want to get assetid 272. I want to show the download link in the receipt page.

Thank you.

Asset : Ecommerce Form Page


(Bart Banda) #2

So basically, you have product assets that people can buy, and then on the receipt page, you want to show a link to the asset (SP) that sits directly under the product asset they have purchased?


(Markos) #3

Hello Bart,

Yes, It will show the purchased item with a link to download only in the receipt page.


(Bart Banda) #4

If you can get, or store, the asset ID of all the products they have bought, and use that as a dynamic root node source for an asset listing, you could nest (or ajax in) the asset listing on the receipt page and list them that way?


(Markos) #5

Hi,

Iā€™m still learning Squiz Matrix. I do not know how to setup ā€œIf you can get, or store, the asset ID of all the products they have bought, and use that as a dynamic root node source for an asset listingā€.

Thank you for the help.