help: How to create a custom “Add to Cart” URL

Slaaavi

New Member
Hi,

I want to make different landing pages for the same product, so I can split test which one is going to work best.
But I'm having troubles to put "Add to Cart" button linked to specific product on my landing page.

I'm with ALIDROPSHIP PLUGIN (not WOO).

So I just want to code by-myself the landing page (example: https://www.yourwebsite.com/lp/1 ) and when the person click on "ADD TO CART" link to add the specific product to the cart and go directly to the yourwebsite.com/cart page so to be able just to fill the details and buy it.

With WOO you can just do the URL link like this "https://www.yourwebsite.com/?add-to-cart=123" , ( "123" is the the post/product ID).

I tried to find information in the forum about this case, but for my surprise nobody wrote about it.

Any help will be highly appreciate
 

Real Residual

Active Member
There is a modal popup when you click on add-to-cart showing you the item being added to the cart. Do you want a customize the popup or you want to redirect to a specific page AFTER adding the product to cart? What kind of page do you want? A page or a post or a product post?

Honestly, you can hook into the process of Wordpress or change Javascript file if you understand what you are doing... But you may be better switching to a woocommerce version if you want customization.

The javascript file is product-single.js In formatted version (chrome developer) is around line 40... Which can be modified. This may serve as a starting point for you.
 

tomazs

New Member
Hi,

I want to make different landing pages for the same product, so I can split test which one is going to work best.
But I'm having troubles to put "Add to Cart" button linked to specific product on my landing page.

I'm with ALIDROPSHIP PLUGIN (not WOO).

So I just want to code by-myself the landing page (example: https://www.yourwebsite.com/lp/1 ) and when the person click on "ADD TO CART" link to add the specific product to the cart and go directly to the yourwebsite.com/cart page so to be able just to fill the details and buy it.

With WOO you can just do the URL link like this "https://www.yourwebsite.com/?add-to-cart=123" , ( "123" is the the post/product ID).

I tried to find information in the forum about this case, but for my surprise nobody wrote about it.

Any help will be highly appreciate

Hi, did you get some solution on that question?
 

tomazs

New Member
There is a modal popup when you click on add-to-cart showing you the item being added to the cart. Do you want a customize the popup or you want to redirect to a specific page AFTER adding the product to cart? What kind of page do you want? A page or a post or a product post?

Honestly, you can hook into the process of Wordpress or change Javascript file if you understand what you are doing... But you may be better switching to a woocommerce version if you want customization.

The javascript file is product-single.js In formatted version (chrome developer) is around line 40... Which can be modified. This may serve as a starting point for you.

Hi, I just saw that conversation. Now they made a plugin for standard plugin but with subscripton. So, do you have any idea how to get LP? Should I have just a Woo plugin to use Elementor for example or some other solution?
 

macsoft

Member
This would be a great tool to advertise on facebook and instagram and get the link directly to adding an item to the cart.
Did someone figured this out already with the original Alidropship plugin?
thank you
 
Top