WordPress Product Authentication

Is there any plugins or any option available in WordPress for check authentication of products quality. I’m selling physical products.So prevent any local (duplicate) products.

We put scratch card within box, buyer will scratch a card and number will appear then buyer wi open our website and submit number then a message will appear "thanks for buy this a genuine product" or any context could be. So this is the process, any plugins or anything else possible for do this..

Woocommerce Custom product fields need to be editable after purchase in View Orders Page

I am Using https://stackoverflow.com/questions/46612499/display-a-custom-field-value-in-woocommerce-orders-edit-view/#answer-46615303 answer code, which works fine.

I want to display that checkout custom fields on My Account > View Order Pages, to allow customer to edit its value after purchase, so Customers can change and save the custom field value.

Any help?

Dot Product doesn’t behave like normal function

I am trying to slightly modify the Dot function by treating it like a usual function, but soon I notice something weird about it.

Suppose there is a set set = {λ}, and I want to force Dot[a, λ] (having two arguments) to just print out {a, λ}.

set = {λ};  Unprotect[Dot]; Clear[Dot] Dot[x_, λ_] := Module[{}, Print[{x, λ}]] /; MemberQ[set, λ] Unprotect[Dot];  (* test *) Dot[a, λ] Dot[a, b, λ]  

The two tests print out

{a,λ} 

and

{b, λ} {a.b, λ} 

respectively.

However, the same code for a different function Dott behave completly differently,

set = {λ}; Dott[x_, λ_] :=   Module[{}, Print[{x, λ}]] /; MemberQ[set, λ]  (* tests *) Dott[a, λ] Dott[a, a, λ] 

where the two tests print out {a,λ} and an unevaluated expression Dott[a, a, λ] respectively, and as expected.

I wonder what is going on under the hood (it appears that Dot is trying to exhaust all possible "two-factor product" given any number of dotted factors), and how to properly temper with the Dot product? (my ultimate goal is to adapt it for some non-commutative algebra).

Can’t scroll website over product image on mobile version

I was testing my site on my mobile phone and I noticed I can’t scroll when passing over a product image on the product description page.

Here’s the same issue on this example: http://demo2.themelexus.com/liftsupply/?product=grey-bernhard-willhelm Try and scroll over the featured shoe image on mobile version.

Desktop version has a zoom hover effect and I think there’s a script of it making conflict on mobile because I tried clearing the html classes and attributes of related tags on the inspector but nothing changed. I also deleted the class="zoomContainer" element that’s the zoom viewport but still.

Looking for some snippet to deactivate this, even in desktop version also if it’s necessary, or whatever other solution around the corner.

Thanks!

How to get sale product first on category listing page woocommerce?

I want to sort product on category listing page. Want to display sale product first and remaning product after sale product. I have used woocommerce_get_catalog_ordering_args hook for sorting but not working.

My code looks like this

function catalog_ordering_args( $  args ) {     if( !is_product_category() ){         return $  args;     }      $  args['orderby'] = 'meta_value_num';     $  args['order'] = 'ASC';     $  args['meta_key'] = '_sale_price';      return $  args; } add_filter( 'woocommerce_get_catalog_ordering_args', 'catalog_ordering_args', 20, 1 ); 

It should also work for variation products

Conditionally open nested, product sub category menus based on is_product_category( ) – Woocommerce

I have a complex product category menu in my woo shop sidebar with lots of sub menus. When the current category is one of the parent menu items, the menu item changes style. But when the current category is one of the nested, sub categories, the menu is closed, hiding the active menu item.

How can I force the menu to open to the current sub category and inherit the active menu item styles?

Is it ok to set new canonical url in product variations group

Ecommerce shop has different pages for different product sizes:

  • /shirt-size-s/
  • /shirt-size-m/
  • /shirt-size-xl/

They all point to /shirt-size-s/ as canonical and only this page goes to sitemap.xml

What should happen when /shirt-size-s/ goes out of stock, but sizes M and L are still available? I guess I should:

  1. Remove /shirt-size-s/ from sitemap
  2. Add /shirt-size-m/ to sitemap
  3. Set canonical to /shirt-size-m/

Is this the best practice with current site structure?

Equations with Tensor product and Ket in Mathematica:

I tried to express this equation in Mathematica:

enter image description here

I defined necessary things:

P = {{Ket[0], Ket[2], Ket[1], Ket[3], Ket[5], Ket[4], Ket[6], Ket[8],     Ket[7]}, {Ket[2], Ket[1], Ket[0], Ket[5], Ket[4], Ket[3], Ket[8],     Ket[7], Ket[6]}, {Ket[1], Ket[0], Ket[2], Ket[4], Ket[3], Ket[5],     Ket[7], Ket[6], Ket[8]}, {Ket[6], Ket[8], Ket[7], Ket[0], Ket[2],     Ket[1], Ket[3], Ket[5], Ket[4]}, {Ket[8], Ket[7], Ket[6], Ket[2],     Ket[1], Ket[0], Ket[5], Ket[4], Ket[3]}, {Ket[7], Ket[6], Ket[8],     Ket[1], Ket[0], Ket[2], Ket[4], Ket[3], Ket[5]}, {Ket[a], Ket[c],     Ket[b], Ket[6], Ket[8], Ket[7], Ket[\[Alpha]], Ket[\[Gamma]],     Ket[\[Beta]]}, {Ket[c], Ket[b], Ket[a], Ket[8], Ket[7], Ket[6],     Ket[\[Gamma]], Ket[\[Beta]], Ket[\[Alpha]]}, {Ket[b], Ket[a],     Ket[c], Ket[7], Ket[6], Ket[8], Ket[\[Beta]], Ket[\[Alpha]],     Ket[\[Gamma]]}}  hadamand[\[Omega]_, \[Omega]2_] := {   {1, 1, 1, 1, 1, 1, 1, 1, 1},   {1, \[Omega], \[Omega]2, 1, \[Omega], \[Omega]2,     1, \[Omega], \[Omega]2},   {1, \[Omega]2, \[Omega], 1, \[Omega]2, \[Omega],     1, \[Omega]2, \[Omega]},   {1, 1, 1, \[Omega], \[Omega], \[Omega], \[Omega]2, \[Omega]2, \ \[Omega]2},   {1, 1, 1, \[Omega], \[Omega], \[Omega], \[Omega]2, \[Omega]2, \ \[Omega]2},   {1, \[Omega]2, \[Omega], \[Omega],     1, \[Omega]2, \[Omega]2, \[Omega], 1},   {1, 1, 1, \[Omega]2, \[Omega]2, \[Omega]2, \[Omega], \[Omega], \ \[Omega]},   {1, \[Omega], \[Omega]2, \[Omega]2,     1, \[Omega], \[Omega], \[Omega]2, 1},   {1, \[Omega]2, \[Omega], \[Omega]2, \[Omega], 1, \[Omega],     1, \[Omega]2}   } H = hadamand[\[Omega], \[Omega]^2]  

My attempt is:

A[u_, j_][n_, P_, Had_] :=   1/Sqrt[n] Sum[    TensorProduct[Ket[k], Part[P, k, j]]* Bra[k].Had. Ket[u], {k, 0,      n - 1}]  B[1, 2][9, P, H] 

I obtain: enter image description here

Where is issues?