Binstellar-Technologies / magento2-add-custom-collect-from-store-button-on-detail-page-pre-select-the-pickup-in-store

How to add a custom Collect from Store(Add to cart) button on product details page & when a user clicks on it & goes to checkout Pick up in store is pre-select.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Magento2 Add custom Collect from Store button on detail page & pre-select the Pickup in store

Magento2 how to add a custom Collect from Store(Add to cart) button on product details page & when a user clicks on it & goes to checkout Pick up in store is pre-select.

Please make sure Pick up Instore is ON.

Installation Steps

Step 1 : Download the Zip file from Github & Unzip it
Step 2 : Create a directory under app/code/Binstellar/CollectfromStore
Step 3 : Upload the files & folders from extracted package to app/code/Binstellar/CollectfromStore
Step 4 : Go to the Magento2 Root directory & run following commands

php bin/magento setup:upgrade

php bin/magento setup:di:compile

php bin/magento setup:static-content:deploy -f

php bin/magento cache:flush

   

Product Details Page Display Collect From Store Button

image3

   

Admin Store Configuration Added Option To Change Collect From Store Button Text

image2

   

Checkout Page Default Select Pickup In Store

image1

   

Note : We have tested this option in Magento ver. 2.4.5-p1

About

How to add a custom Collect from Store(Add to cart) button on product details page & when a user clicks on it & goes to checkout Pick up in store is pre-select.


Languages

Language:JavaScript 58.9%Language:PHP 25.2%Language:HTML 15.9%