Magento custom user inputs on product page - php

I am looking for some advice or information on how to do the following. Basically I want to allow users on the product view page to be able to select from a hard-coded custom dropdown menu and when they press 'add to cart' it saves this information to the cart associated with that product. The drop down menu isn't customisable in the admin section as it is hard-coded in the product page template.
I'm really lost on how to do this or what terms to search for allow me to research this.
Essentially what I'm asking is how do you add custom inputs for each product.
Any help or advice or links would be greatly appreciated.

Yes, like someone commented, Custom Options is what you're looking for.
In the admin section for a product you'll find Custom Options as tab. There you want to add a new option with type "Drop-down" and add your values there.
Why would you want to have the options hard coded? Seems like an odd requirement. With Custom Options you have full control to change the options without changing any code.

Related

How do I add custom fields into the Brands page in admin back office Prestashop?

I'm trying to add a custom field into the Brands page in the admin back office.
Before this, I successfully added a custom dropdown box in the Category page in the admin back office with hookActionCategoryFormBuilderModifier and used hookActionAfterCreateCategoryFormHandler and hookActionAfterUpdateCategoryFormHandler to handle the form's update and create logic.
However, when I try to do the same with in the Brand page (hookActionBrandFormBuilderModifier) nothing happens. Is there another way to do this? I can't seem to find another hook related to Brands so any help is very much appreciated.
Please try to use:
hookActionManufacturerFormBuilderModifier.
Replace Brand with the Manufacturer as in reality brands, are just manufacturers and wording have changed but not a class name for example.

How to customize cart item in magento

How can we customize cart items in magento. I have used custom options but it is not working as intended. All I need is to show some configurable data in cart page and in order page.
Can some one help how can I achieve it.
Edit: To elaborate, along with cart item, type and qty. I want to display supporting text for each item type. I got it working with custom options, but I had to include qty inside custom options which created an issue on cart page during cart update. Now I am looking for some other way by which I can acheive same thing.
Thanks
According to your question, you are trying to edit the product that are in the cart. Hope i am getting you right. For this you just need to have a look at the file default.phtml in
app/design/frontend/base/default/template/checkout/cart/item/default.phtml
This phtml file is responsible for displaying the item in the cart. Here you can get the custom options of the product as well. You can edit as per your requirement.
But remember before you edit copy this file to your theme because this is the best practice not to edit the magento's core files.
Hope this will help.

Add Custom filter in wordpress

I have create custom post type and add one meta box for ordering. I have add ordering meta-box too. But now i want to add a filter in post type for show up / show out. when admin click on show up then all the post will showing order wise of the meta box that admin you in meta box. It this possible. Also please see the images so i'll clear for you.
Search working from the product ordering.
Well all the records in the admin section in WP are rendered using Wp_List_Table class, more info you can find here.

Show price layered navigation after selecting price filter

I would like to show price filter option after selecting price filter already. So, I would like to keep all price filters, even if price filter is already selected. Is this possible?
magento uses the layered navigation system where when u filter a category with something say price, all the other possible selection in the price disappears in that filter, so if you want to pick another price range, you have to go back to the previous page or deselect the filter.
I did this using php sessions and writing a custom functionality to filter.phtml. I set sessions with filter name which includes url and title, and wrote if session is set, then write it. So I literally manually created all links, when one filter is selected. Hope this will help someone..
This answer links to a popular Free module which accomplishes what you are after and has been updated to the latest version of CE;
How to make Magento not hide layered navigation filters?
Here is the link;
https://www.magentocommerce.com/magento-connect/multiple-select-in-layered-navigation-filters.html

Are there any WordPress based e-commerce plugins that allow me to attach meta data per order?

I'm currently using WP Shopping Cart.
Per order of a product, I need to attach some meta data such as size, frame options and frame colour. These different options change the price of the end product.
My first idea was to simply add a new product via the database each time, adding the necessary info to the product description and changing the price accordingly. However, this sounds like an ugly hack that will only lead me to problems down the track.
Is there any WordPress ecommerce system that allows this, or do you have a better solution to my problem?
Thanks
This comes a bit late but... Getshopped seems to meet you needs.
They call the product meta variations and I've linked you to the specific page.
Hope it helps!

Categories