Sample button produced without plugin
-
Hello everybody,
I am creating an e-commerce in which the potential customer must have the possibility to request a sample product at a fixed cost of € 5.
I would not like to use paid plugins, so I am looking for a “smart” solution.
I created a hidden product in the shop called “Product Sample” to which I assigned the price of 5 €. In the product pages I put the shortcode that creates the button to buy the “Sample product” and everything works perfectly.
The only problem is that in the cart I only see the generic name “Product sample” and this makes the order impossible to manage. Instead, I would also need to see the title of the page on which the button was clicked, so that “Example product” is combined with the name of the specific product chosen.
I try to give an example: e-commerce sells Apples and Bananas. The product pages contain the same “request a sample product” button (connected to the same “Sample product”). When the customer requests a sample product of the Banana product, I would like to see “Sample product – Banana” in the cart.
Do you think it is solvable? Thank you.
Good day.
- The topic ‘Sample button produced without plugin’ is closed to new replies.