I have a online electronic parts store build with Prestashop 1.6.
Now I want to add some extra fields for each product (for example: Part datasheet, footprint, 3D model and ...). These field may have different types (file, checkbox, text and etc).
can anybody help me to do this.
the final thing I want is something similar to Newark Website. I have highlighted the field in the below image.
I found this tutorial, but the problem is he didn't say anything about adding this field to front-end and also nothing about field type.
Related
For the last few days I have been wrapping my head around this but for the life of me, can't figure out a way to do this.
I have a WordPress website dedicated to different categories of products. I use Custom Post Type UI to create the product categories, ACF for custom fields for each product type and then FacetWP for the indexing and filtering part. Each category has a dedicated catalogue style page where I have certain filters from FacetWP for users to narrow down their search for a product that fits their requirements.
Everything is working well, however, my issue is that some products get discontinued and are being replaced by newer versions. Because of this, I have added a custom field for each category such as "wm_manufactured" (washing machines) that has a simple check box with "Yes". If the checkbox is ticked, then I want the product to be displayed in the catalogue.
Does anyone know how to skip products or remove them from indexing if a certain field is empty or maybe another way of doing this?
I need these product pages to still be available through a direct link because they are being ranked high on Google and I have a banner informing customers that this particular product has been discontinued and have a link to its replacement.
So I found the answer to my trouble and it was right in front of me.
When making a "Listing" template in FacetWP, there is a second tab called Query.
When I was testing the query filters, I was only putting the value that I set up on ACF, but the actual value that I had to add for the system to compare to was the exact figure from inside the database.
While ACF would have returned a "yes" for example, FacetWP was only seeing
a : 1 : { i : 0; s : 3 : "yes"; }
the value present in the database. So check the database for the exact value and don't just go based on what ACF will return.
I'm using the WooCommerce Composite Products plugin in my WordPress/WooCommerce website and would like to be able to control what the default chosen product option is for just the first component via URL parameters.
For example, say I create a composite product that allows you to build a skateboard (deck component + wheels component + trucks component). If I create a link that says "Build your own Skateboard using this deck", that link should have URL parameters of some sort that pre-selects the right deck out of the available deck options upon opening the skateboard composite product (the link's URL might look something like this: www.mydomain.com/shop/skateboard-composite-product?deck-option=red-deck , where that last bolded part of the URL pre-selects the given deck option. The WooCommerce Composite Products plugin has the ability to select a default product option for any component. So I'd assume targeting that and changing the default option to whatever you say in the URL is the right way of tackling this.
I'm a bit of a noob at coding, especially php. Does anyone have an idea of how to accomplish this? WordPress/WooCommerce/plugins are all updated to latest versions as of this posting date. I'm using the Storefront theme for my shop.
Thanks in advance!
I figured it out myself, and it's pretty simple. For those who may be wondering how to do it:
If you create a composite product and then add it to the cart and view it in the cart, the composite product in the cart will have a link that will take you back to the composite product page with it pre-filled with all your previous choices. That link's URL will have parameters like this: ?wccp_component_selection[1495658223]=8 , where the number after the equal sign (8 in this case) is the product ID of the product that you'd like pre-selected upon opening the composite product page. I'm not exactly sure what the other large number is (1495658223), but I think it might be the component's id or something-doesn't really matter though as you will be able to see it after you add a composite to the cart.
Note: you can have multiple parameters in one URL in order to pre-select products for multiple different components. Again, just add a composite to the cart to see what that URL would look like.
I would like to change the text (for Quantity) showing up when I do select some options on a variable product in a Woocommerce site. To be more specific, I have some variable products that "Quantity" only appears when you choose the color, size etc of the product. So, all I want to do is change the label for Quantity and make it for example something like "Well, how many of them ?" and so on. Ideally, I would like the change to be permanent and independent from future updates. That's the label created:
<label class="label-quantity">quantity</label>
So, I have found that woocommerce/single-product/add-to-cart/variable.php is the file used to display all the information for a variable product.
Plus, this label is assigned via jquery, that's obvious but there is a call in line 78 to function <?php woocommerce_quantity_input(); ?> and that leads me to some core files. Anyway, I have been struggling to change the label for quite some hours now but hadn't any luck.
Any advice/help/tip would be much appreciated.
Thank you
I need help with the following:
In Magento I have created a configurable product and assigned some simple products to it. They have an individual attribute set with individual, numeric attributes that I have created.
One attribute is for example "length". This attribute has the following values:
3,4,5,6,7,8,9,10,12,14,16,18,20
If I open the drop-down menu on the article details page, the values get displayed like that:
10,12,14,16,18,20,3,4,5,6,7,8,9
Thus, it seems that the attributes are saved as text (alphanumerical?) and not as numbers (numerical)?!
I need some advice on how I can change that. I have tried to work with "Input Validation for Store Owner" in "Manage Attributes", but that doesn't work. Is there f.e. any field in my database where I can simply switch the way my attributes are saved/displayed?
I have created many products and attributes, thus I don't want to re-create all of them again, if not necessary.
Thanks for any reply.
It has been a long time since you asked and might be you have already found a solution to it. I am just writing so that anyone coming on this page for the same problem does not have to go thru the same pain what i went thru.
When you create the attribute(length), you would have created the options (like 3/4/5.. etc) create the sort of that options in the attribute section and they will sort as per your requirement.
I want to add a custom attribute to magento order_item and quote_item and a field in the order form for my serial number attribute and other custom attributes.
I'm selling Tablets offline but I am using Magento backend for managing all inventory and customer information along with orders, the tablets are given on subscription bases so there is no shipping as the customer would be at store during purchase.
I want to add custom attribute which are unique to the customer and tablet.
I could create an attribute for the customer but what if they order more than one tablets which means logically the only way is to place those attributes in the order item.
I seriously don't know how to go about.
I hope someone can point me to extended magento sales module and add my custom attribute to order_item and also show in magento order form.
First you need to add/change this two tables:
- sales_flat_order_item
- sales_flat_quote_item
just add fields and name it as you wish (that will be your new attributes)
file you need to edit for your new attribute to be visible on order page should be this one:
app/design/adminhtml/default/default/template/sales/order/view/items/renderer/default.phtml
and your new attribute:
<?php echo $_item->getMyCustomAttribute() ?>
If you would like to make that attribute "the proper way" it requires a bit more skill..
Here is an example how you can add custom category attribute, same would be for your problem:
http://inchoo.net/ecommerce/magento/how-to-add-new-custom-category-attribute-in-magento/
Thanks
I would ask some of the more popular extension providers for a custom quote. AheadWorks comes to my mind quickly... I say visit the Magento Connect store and browse through highly rated extensions and you'll see there are a small number of companies doing lots of successful work.
They will be able to "more properly" handle, store, track, and communicate your desired data through the entire system.
Once I better quantify a similar situation I would like to program, I will seek the help of experienced module builders. The Zend MVC is a miserable bowl of spaghetti once you start trying to code in it! :D