How to add new fields in cart of VirtueMart (Joomla!) - joomla1.5

I am working on joomla and using joomla VirtueMart component.I created new fields in product detail page like color and size (drop down), Now I want to add that POST value (ex. $_POST["cmbColor"]) in shopping cart process and finally to be saved in database of VirtueMart.Please help me how to add these fields in cart.

Did you use the attribute system to add the optional color and size? Using either child products or attributes will get the options to show in the cart and saved on a sale. The VM documentation is pretty good on this topic, you can find how to use attributes here -
http://virtuemart.net/documentation/User_Manual/Product_Attributes.html

Related

Magento 2.4.5-p1 items that are out of stock no longer showing in drop down

Since i upgraded my Magento site to 2.4.5-p1 items that are out of stock no longer "dim out" the drop down selection item when it is out of stock. For example i have a "0.5kg" value for weight attribute on the below screenshot and before the upgrade this was shown but was un-selectable and had "(out of stock)" beside it. How can i bring this back? i would still like the customer to know this is an option, but out of stock.

How to redirect a associated product to its configurable product

I am using Magento 1.9.2.1 and I am using the native swatches option. I am trying to only show the associated products on the catalog page and not the configurable product. But I am hoping that by clicking on any of the associated products, it would take the customer to the configurable product.
So lets say that I am selling a cap that has a red and brown option. I want the catalog to show the red simple product and the brown simple product. But when the customer clicks on either of the simple products, it will take them to the configurable product and they can select a color there instead.
Is there a easy way to do this?
I just found an extension that works
https://github.com/Mestrona/Mestrona_ForwardToConfigurable
I'm using JRD Redirect Simple to Parent for exactly this. I tried Mestrona as well, but it sets the URL to that of the simple product, which is a problem for bookmarking and the like when the user then changes up the configuration. JRD sets the URL to that of the parent and my plan is to then add a query string so that if the URL is bookmarked, I can route it to the same configured product.

Woocommerce - How can I create an order form/quote to be added to a cart?

I'm working for a client who prints on canvases, he needs the site to request the user's information/preferences of what kind of print job is to be done.
The user fills a form attaching an image of what should be printed on a canvas with predefined prices for different canvases or print surfaces of different sizes, on submission of the form, the fields of the form are transferred to the cart.
When an order has been placed, the user can checkout by paying for the products once ready.
I'm trying to recreate the order form here nifty250.co.za at the bottom of the page, exempting the Instagram login part.
I'm aware of a plugin like Gravity form with an add-on that might be able to do this, but I'm not sure it can do as I intend.
Products are actually a custom post type, so you can use wp_insert_post to insert a new product. After you insert, you get the id of the new product post type, use update_post_meta to set a meta key and meta value as _visibility and visible respectively. you can set the visibility also.
This answer shows how to insert product .
To add to cart
global $woocommerce;
$woocommerce->cart->add_to_cart( $product_id );

Adding new page to Admin Panel in Magento

I am developing an e-commerce website and I need to customize the database. I want to add some tables into the database and records entry should be done from the Magento Admin Panel, eg:-
Like as we click Add New Product under Manage Products from Magento Admin Panel, whatever data we provide there like, name, weight, description, sku, etc, it is entered to the respective database table automatically.
Now, let’s say I want three more tables to be created in the database: Brand(brand_id, brand_name, brand_desc...), Brand_loc(brand_id, brand_loc_id, brand_address, brand_city, brand_state...), Product(prod_id, brand_id, brand_loc_id, prod_name, prod_weight....).
So, I want the above tables’ attributes to be shown in Magento Admin Panel and as I enter the data from Magento Admin Panel, it should be entered to the respective tables in the database like I explained of Add New Product above.
Can anyone please help me on the above issue....
Thanks.
I will proceed as follows :
add a event observer in my module so that can be called once a product is saved, there are various observers in magento for before and after events.
when a product is saved i will add my code of saving data into custom tables in the observer function.
tutorial to add product after observer is here :
http://snipplr.com/view/56959/
As per a magento developer i would advice to create a complete module doing as said above, and also create pages so that admin can edit/delete brands in your case.

Contact form 7 (wordpress)

I´m using contact form 7 on my website to get customers to order
products from my Wordpress site.
But I want to let the user (customers) to add their own form fields if they want to add other products then listed in the form.
Is that possible?
Fields in the CF7 creator are inserted as a kind of shortcode/internal format, and after that it passes a parser that changes them into valid HTML form elements. What you can do, is to use DOM (Document Object Model) to create a new element - but then, you should definitely pay attention to your PHP code afterwards.