Hey all.
So I'm trying my hand at using MVT again ... and I'm struggling, again.
The end goal -- On the Basket `BASK` Page,
Then I hunt through the documentation and find this -- https://docs.miva.com/code-samples/assigned-categories
And it generally seems to be in the ball park of what I'm looking for, but when I try to put it into my BASK page, modifying it to look for the local var that I mentioned earlier, I get no output and the item code disappears.
Here's what the Basket Contents section looks like thus far (I'm sure it's a not pretty but it will be cleaned up, as soon as it actually functions)
:: This code block has been removed as it is waaaaay too long and unwieldy. I have also started to completely redo the mvt code I did find for getting the code. ::
The follow up posts will have the updated code, below.
2019-04-15-0900 -- This was the solution to on specific issue --
2019-05-03-1202 -- Resurrecting this thread because the solution to this problem will still be useful to our store.
So I'm trying my hand at using MVT again ... and I'm struggling, again.
The end goal -- On the Basket `BASK` Page,
- get the item code for each item in the basket
- get the assigned category of each item
- if it matches a specific category apply a coupon code to the basket.
Then I hunt through the documentation and find this -- https://docs.miva.com/code-samples/assigned-categories
And it generally seems to be in the ball park of what I'm looking for, but when I try to put it into my BASK page, modifying it to look for the local var that I mentioned earlier, I get no output and the item code disappears.
Here's what the Basket Contents section looks like thus far (I'm sure it's a not pretty but it will be cleaned up, as soon as it actually functions)
:: This code block has been removed as it is waaaaay too long and unwieldy. I have also started to completely redo the mvt code I did find for getting the code. ::
The follow up posts will have the updated code, below.
2019-04-15-0900 -- This was the solution to on specific issue --
Originally posted by cpp-dev
View Post
Comment