How to add custom form before "add to cart" page - e-commerce

I am using Magento 1.7. I need to get input from user so how to add custom form for taking input from user.
Let me explain: when click on any product it display product information. Now there should be a button.On click that button it should show custom form. After submit that form it should redirect to "add to cart" page with all the details of that product and values of custom form fields which is filled by user.
Is there any extension or any other way to do this?

On zennioptical.com the "ORDER" button is located on the product listing template
magento template : /app/design/frontend/base/default/template/catalog/product/list.phtml
The prescription form is actually shown on the product detail page
magento template : /app/design/frontend/base/default/template/catalog/product/view.phtml
To accomplish this in magento create a simple product the add custom option for ('Prescription Type' etc) then you will need to do some custom css and javascript to accomplish that layout

Related

Shopify: How to make a custom template editable in the theme editor?

I am using the theme "Debut" and I've copied it to make a custom theme out of it.
Then, under "Edit code" I have create a new template for "blog".
Now, when I click on "Customize" button at my template, and the theme editor opens, I have a select box in the top bar where I can select the themes templates, and the pages I've created. But I can't find my custom blog template there, to edit it via the drag & drop editor.
How can I achieve this?
Any help is highly appreciated, thanks!
Once you add any custom template for a blog, product, or collection, they are not available directly into the backend customizer in Shopify.
In backend default templates are available, you need to assign the template to a page, product or blog and then navigate to the desired page, collection or product and blog page into backend using customizer window and then you able to edit the sections and blocks that are added to custom template code.

How to add custom textbox field on shopify product page

I need to add custom textbox field on shopify product pages.
My requirement is to add textbox field on product page and when customer add product in cart than that textbox field value also display on cart page and also on checkout page.
I also need to reflect that textbox field value on admin custom order page.
Is this possible?
For adding custom textbox field on shopify product page please follow below step :
Login to your shopify admin and ope product detail page template code
Copy and paste the code below into your product detail page template file between the and tags. The form textbox field will appear wherever you place the code.
<p class="line-item-property__field"> <label for="custom-field">Your custom field</label> <input id="custom-field" type="text" name="properties[Your custom field]"> </p>
Save file.
After adding above code custom textbox field will be appear on your product detail page.
You can also use this link as reference for adding different type of custom field on product detail page : Shopify line item properties
a much more easier way is to use the following Shopify App:
https://apps.shopify.com/Textfield
It let‘s you create easy and fast different kind of text fields.

How to add sub menu in front page for the product category in prestashop 1.6

I want to add sub menu for my category menu for my main menu displayed in the front landing page as shown here
This is my category
When I hover the Category Ticket I must be able to see three submenus
1)Buy ticket (link to the product page which will be always dynamic page)
2)See winners ( a cms page )
3)Check offers ( a cms page)
Category are displayed by adding category
Is there any option to do submenu for category from the prestashop 1.6 back end
You should install blocktopmenu module. Already contained in Prestashop official installation. This module allows you to create submenus. All you'll have to do is to style it with css.
Becouse I cant comment below Florian Lemaitre post I write here, module bloctopmenu didn't have options to create submenu, it is create automaticaly submenu only for category who contains subcategories. If somebody need create some custom submenus containing for example cms page or add home icon he must use third party module.

Make user stay on product view after clicking on "Add to Cart"

I'm using Hotcakes Commerce DNN modules and I'd like to know how I can allow the user to stay on the product page after the "Add to Cart" button is clicked. The default behaviour is to redirect the user to the cart page whenever the a product is added to the cart.
The easiest way to make this happen is to modify your viewset to change how the add to cart buttons work. Here's a summary of the required steps:
Add and begin modifying your viewset if you haven't started already.
Modify your \VIEWSETNAME\Views\Products_ProductDetails.cshtml file to change the add to cart action from a post, to an AJAX link. This will allow you to add products to cart directly using a link, but keep you on the page.
If you're using the Mini Cart, refresh the page using JS so that it updates appropriately.
Please note that this option won't work well if your products have choices. If this is the case, you should instead allow your customers to be directed to the cart page, and use a parameter there to determine whether or not you redirect back to the product page.

How to implement "Add To Cart" button in bigcommerce

i am setting up my store on bigcommerce, i want to implement add to cart button on my custom home page can anyone tell me how can i add "Add to cart button" on three blocks below slider(In celebrate, bags, weddings section)? This is my store link http://eveningbags1.mybigcommerce.com/
Usually the best way to make an add to cart button on other pages or from other websites is to take the link the Bigcommerce uses for Category/Brand/Search pages. Works like this
site.com/cart.php?action=add&product_id={product_id}
To add a specific option/sku/variation to the cart, use this format
site.com/cart.php?action=add&sku={sku}
Thanks to #Alyss for the sku info