Thanks Kuroi, that does make sense. I added a simple checking to make sure that we get the number of attribute id we expected, if not then just return 0.
<?php
function...
Type: Posts; User: yellow1912
Thanks Kuroi, that does make sense. I added a simple checking to make sure that we get the number of attribute id we expected, if not then just return 0.
<?php
function...
Follow up:
This is the function I currently have to get product quantity:
Note: I used a function I have in my class to turn the result from db query into string, but if you want to make use of...
Kuroi,
There is a problem with searching for the "string" as you suggested here:
"So, your first step would be to work backwards from the products_options_values to get the relevant...
Thanks Kuroi, I think I get the basic ideas now:
1. first we need to get the attribute id by using the products_id, option name and value (we dont want to use option id here for a specific reason)...
Kuroi, can you give me a hand here?
I'm trying to modify the order history page, so that users can add the products from previous order back to cart.
The idea is to use the multiple add to cart...