product

Add custom “Booking” button to WooCommerce Product single pages

帅比萌擦擦* 提交于 2019-12-29 08:17:25
问题 Having trouble with this issue, any help is appreciated! I want each of my woocommerce single product pages to have a button "Book Now" that links to a page that I created on WordPress titled "Booking Appointments". That "Booking Appointments" page contains a "Easy Appointment" Plug in Form (that clients will fill out) that I installed which I also want to have it auto populate the product's SKU or values into one of the form inputs (from the pervious page) so that I do not have to enter it

Add custom Product data dynamically as item meta data on the Order

风流意气都作罢 提交于 2019-12-29 08:08:09
问题 Is it possible to add a metadata on a product which is inside the Order? In this case, there would be one metadata but each product (in the order) would have different value. Example: Order 1: * Product 1 Sample Meta: Meta1 * Product 2 Sample Meta: Meta2 Thanks. Update1 : I'm now stuck on how would I grab the values from the woocommerce_add_cart_item_data filter. I was able to successfully add the meta data from there. I need to grab those values for me to use in this woocommerce_add_order

Add custom columns to admin products list in WooCommerce 3

不打扰是莪最后的温柔 提交于 2019-12-29 07:21:09
问题 Is it possible to add a column "delivery time" to the Woocommerce admin product list? I know there are some additional columns (thumb, price, product_cat etc) to choose at "Screen Options" but "delivery time" is not available. Is it possible somehow to add it to the list? EDIT: I tried to follow LoicTheAztecs answer, but I'm having problems to find the correct meta_key slug. If i search for "delivery" in wp_postmeta I'm getting 0 results. But there are products with delivery time assigned. On

Add custom columns to admin products list in WooCommerce 3

有些话、适合烂在心里 提交于 2019-12-29 07:21:05
问题 Is it possible to add a column "delivery time" to the Woocommerce admin product list? I know there are some additional columns (thumb, price, product_cat etc) to choose at "Screen Options" but "delivery time" is not available. Is it possible somehow to add it to the list? EDIT: I tried to follow LoicTheAztecs answer, but I'm having problems to find the correct meta_key slug. If i search for "delivery" in wp_postmeta I'm getting 0 results. But there are products with delivery time assigned. On

Why is B = numpy.dot(A,x) so much slower looping through doing B[i,:,:] = numpy.dot(A[i,:,:],x) )?

久未见 提交于 2019-12-29 01:34:35
问题 I'm getting some efficiency test results that I can't explain. I want to assemble a matrix B whose i-th entries B[i,:,:] = A[i,:,:].dot(x), where each A[i,:,:] is a 2D matrix, and so is x. I can do this three ways, to test performance I make random ( numpy.random.randn ) matrices A = (10,1000,1000), x = (1000,1200). I get the following time results: (1) single multidimensional dot product B = A.dot(x) total time: 102.361 s (2) looping through i and performing 2D dot products # initialize B =

Display the stock availability for all product types in Woocommerce archive pages

馋奶兔 提交于 2019-12-29 01:30:30
问题 I am using this code in showing the stocks of products: add_action( 'woocommerce_after_shop_loop_item', 'display_variable_product_stock_quantity', 10 ); function display_variable_product_stock_quantity(){ wc_get_variable_product_stock_quantity( 'echo_html' ); } function show_stock() { global $product; if ( $product->stock ) { // if manage stock is enabled if ( ! $product->managing_stock() && ! $product->is_in_stock() ) echo ''; } if ( number_format($product->stock,0,'','') > 0 ) { // if stock

Looping through lists to create a cartesian product by row pandas

做~自己de王妃 提交于 2019-12-25 17:04:31
问题 I'd like to expand my rows by their cross product across multiple lists. The current logic I use is: list = [['Yes', 'No', 'Maybe'], ['Yes', 'No', 'Maybe']] index = pd.MultiIndex.from_product(list, names = ["column1", "column2"]) pd.DataFrame(index = index).reset_index() which unfortunately will not work for more than one list. How would I be able to run the cartesian product of something that looks like this: [[['Yes', 'No', 'Maybe'], ['Yes', 'No', 'Maybe']],[['Yes', 'No', 'Maybe'], ['Yes',

Using radio buttons and drop down selector at the same time for product variations

不羁的心 提交于 2019-12-25 07:26:32
问题 I am using the product variation like Height , Weight and Thickness . Before that all the variation attributes where displaying in drop down selectors. But now I am using woocommerce-radio-buttons plugin. This plugin convert dropdown into radio button. I want to convert only radio button for Height and Weight . But I don't want Thickness as radio button, because I need it as a drop down selector. How to do that? please suggest me. Thanks 来源: https://stackoverflow.com/questions/38912552/using

Magento sorting related products by price

六眼飞鱼酱① 提交于 2019-12-25 06:47:30
问题 i've been trying to sort related products by price in descending oreder (cheapest at the top and expensive at bottom) without any luck so far, maybe someone could guide me on how to do that? 回答1: See this file app\code\core\Mage\Catalog\Model\Product.php and check this function line 814 public function getRelatedProductCollection() { $collection = $this->getLinkInstance()->useRelatedLinks() ->getProductCollection() ->setIsStrongMode(); $collection->setProduct($this); return $collection; } You

Big Cartel - Product Page Font Type

回眸只為那壹抹淺笑 提交于 2019-12-25 06:21:31
问题 Here is a link to the site...http://johnathonpowers.bigcartel.com/. Trying to change the font type/face/style for the product pages. So I tried what seems like everything. In my CSS area of big cartel, I went through and found every mention of font for "product", "products", "product page", etc and changed the font size on all of them. I changed the size in order to quickly see what exactly they were affecting. Only the product titles and prices could I pinpoint the code for. Many of them