product

How to add a custom text field in Magento v1.5 Catalog/Mange products/General tab in admin panel?

房东的猫 提交于 2019-12-19 10:35:12
问题 How to add a custom text field in Magento v1.5 Catalog/Mange products/General tab in admin panel? please help me if any body have expertise on this.. 回答1: Since Magento maintains Catalog Product as EAV structure, so it will be best (in the interest of Magento functionality & feasibility) to provide the text field as an attribute in the General Tab of Catalog Product details page in the Admin section. We will go through step by step process of adding an attribute to all the Products:- Go to

Total purchase count by product for current user in Woocommerce

我只是一个虾纸丫 提交于 2019-12-19 10:25:42
问题 In Woocommerce, I would like to show the total purchase product count for the current user in single product pages. Like for example if John bought a Pen 2 times then it displays the count ("2") in this product page for John user and if Jack bought it 5 times then it will show 5 in this product page for Jack user. I don't want print total sold count, I want to show as per current logged in user. My actual code in function.php file: add_action( 'woocommerce_single_product_summary', 'wc_product

Adding a promotional product when a certain cart amount is reached

痴心易碎 提交于 2019-12-19 07:51:51
问题 I am looking for the right hook in WooCommerce because I need to add a promotional product to the cart when a certain cart amount of is reached, such as 100 conventional units. I have also used the hook 'init' but I do not think it's right. Here is my code: function add_free_product_to_cart(){ global $woocommerce; $product_id = 2006; $found = false; if ( sizeof( $woocommerce->cart->get_cart() ) > 0 ) { foreach ( $woocommerce->cart->get_cart() as $cart_item_key => $values ) { $_product =

Add Woocommerce Temporary product

纵然是瞬间 提交于 2019-12-19 06:56:56
问题 Help Needed: Is it possible to make a user-generated temporary product to be added to cart in WooCommerce? I'm trying to transfer a non-wordpress website to WordPress, but the site already has a sophisticated e-commerce system that the client doesn't want to change. What basically happens is a visitor specifies the measurement of the product that the client is selling, add different variations to it, and then after submitting, the website generates the product's price based on the visitor's

Add Woocommerce Temporary product

邮差的信 提交于 2019-12-19 06:52:28
问题 Help Needed: Is it possible to make a user-generated temporary product to be added to cart in WooCommerce? I'm trying to transfer a non-wordpress website to WordPress, but the site already has a sophisticated e-commerce system that the client doesn't want to change. What basically happens is a visitor specifies the measurement of the product that the client is selling, add different variations to it, and then after submitting, the website generates the product's price based on the visitor's

Add Woocommerce Temporary product

元气小坏坏 提交于 2019-12-19 06:52:28
问题 Help Needed: Is it possible to make a user-generated temporary product to be added to cart in WooCommerce? I'm trying to transfer a non-wordpress website to WordPress, but the site already has a sophisticated e-commerce system that the client doesn't want to change. What basically happens is a visitor specifies the measurement of the product that the client is selling, add different variations to it, and then after submitting, the website generates the product's price based on the visitor's

Allow customer to set the product quantity globally on Woocommerce products [closed]

送分小仙女□ 提交于 2019-12-19 05:09:47
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . I use woocommerce for my catering start-up. I work with companies that order lunches for their clients, and they have to choose the same products for each person. So, the quantities will be the same for all products. For example, a group of 30 people want a sandwich, a soda, and a

Automatic text in short description of WooCommerce products

非 Y 不嫁゛ 提交于 2019-12-19 04:34:07
问题 I am trying to create an automatic text in the description of the WooCommerce articles and put "article only available in the store." I thought about putting it inside a function like this: add_filter ('woocommerce_short_description', 'in_single_product', 10, 2); function in_single_product () { echo '<p> article only available in the store. </ p>'; } But this replace the text that is already written in the short description of the product. If I have not put text, nothing appears. Is possible

add a field in edit product page of prestashop admin

╄→尐↘猪︶ㄣ 提交于 2019-12-18 12:43:02
问题 I have add a field "mystock" in product table of prestashop database. Now i want to display/edit this filed in edit product page. It also be update when product will update. 回答1: This process require some work around in steps. Below i have listed them. 1) Open classes/Product.php. Place public $mystock; in the class properties list, which you can see after the class is started. 2) Down the file, find public static $definition = array( , it will be a long array. Find the 'fields' => array( in

how to get product attributes from wordpress database

人盡茶涼 提交于 2019-12-18 12:09:25
问题 Writing custom code to create product detail page with wordpress database. I have displayed product title, desc, price, stock, etc and got stuck up with product attributes. In the database, _product_attributes is stored in serialized manner in wp_postmeta table in database. And i couldn't unserailize attributes from it. But i found, each attribute value with it own price has been stored in wp_postmeta in some other post_id. for example, product with post_id=55 has attribute name 'Size value'