PDA

View Full Version : Hoe can we get &mvt:option:data; value in Basket


pruthvikb
04-03-06, 02:04 PM
Hi,

We have following code for displaying Product Attributes in Basket Content Page

<mvt:if expr="l.settings:option:option_id">
&mvt:option:attr_code;: &mvt:option:opt_code;
<mvt:elseif expr="NOT ISNULL l.settings:option:data">
&mvt:option:attr_code;: &mvt:option:data;
<mvt:elseif expr="NOT ISNULL l.settings:option:data_logn">
&mvt:option:attr_code;: &mvt:option:data_logn;
<mvt:else>
&mvt:option:attr_code;
</mvt:if>
</mvt:item>

But here &mvt:option:attr_code;: &mvt:option:opt_code;
working.

Here how can we get &mvt:option:attr_code;: &mvt:option:data;

Please help on this

Thank You,

Kumar

latu
04-05-06, 05:12 PM
Are some attributes & options displaying?

What exactly isn't displaying?

Please provide a link.

pruthvikb
04-06-06, 12:00 PM
Hi,

Here actually I want to display Product Attribute Name (Prompt field from DB).
Presently code is displaying Product Attribute Code.
It is
<mvt:if expr="l.settings:option:option_id">
&mvt:option:attr_code;: &mvt:option:opt_code;

Here hoe can we get <mvt:elseif expr="NOT ISNULL l.settings:option:data"> condition?

And also I didn't seen the l.settings:option:option_id varaibl in the Local Variables list.
I have added your module for viewing these varibales

Kumar

latu
04-06-06, 03:06 PM
actually I want to display Product Attribute Name (Prompt field from DB). Presently code is displaying Product Attribute Code.

There is a module available for this:

Display Attribute-Option Prompts in Basket & Order v5
store.latu.net/miva-modules-5/LATU-ATTOPTPROMPTS.html (http://store.latu.net/miva-modules-5/LATU-ATTOPTPROMPTS.html)

wcw
04-07-06, 07:49 PM
Unforutately those variables are not in the array without using a 3rd party module. The Attribute Prompt vs Code module at
http://www.emporiumplus.com/go/wcw/PROD/1AA/1AA00204
creates the variables and makes them available in the array. So the variable
&mvt:option:attr_code; can be changed to &mvt:option:attr_prompt; Like wise the opt_code to opt_prompt. The array is created for the bask and order screens. The module also interfaces with the EZ Batch module so you can have batch reports with the prompt instead of code.

pruthvikb
04-10-06, 07:15 AM
Hi,

I think it is very bad from Miva. I think they should help us on this issue. Because for every small things users can't buy 3rd party modules.

Tom
04-10-06, 07:28 AM
(text not available)

pruthvikb
04-10-06, 08:08 AM
Hi,

Thanks for your reply.

But I need this reply from Miva Merchant. Based on this we will decide to use this software.

Becuse If Miva Merchent made for 3rd paty modules, what about Miva Customers?

wcw
04-10-06, 12:45 PM
Hi,

I think it is very bad from Miva. I think they should help us on this issue. Because for every small things users can't buy 3rd party modules.
With proper database design, you don't need the prompt. 99% of the stores should be able to design the databases, prompts and codes to do without it.

In some cases the prompt would not look right in the basket, eg long drawn out description of an attribute. What you are asking for is not trivial code. Then consider because on some products you would want it and others not, you'll need a way to decide when to use the prompt and when to use the code. So you have to have a product selectable option. You could fool around with code for a couple hours or you could get an $18 module that does the swap and can be done on just certain identified products.

Mark Hughes
04-13-06, 07:30 PM
Here actually I want to display Product Attribute Name (Prompt field from DB).


Hi Kumar,

The Basket page does not know what the attribute name is, only the attribute code. To get the name to appear on this page, yes, you will need a module that can locate the information in the database and make it available to the basket page.



Here hoe can we get <mvt:elseif expr="NOT ISNULL l.settings:option:data"> condition?



You can meet this condition when one of the basket items has a text attribute into which the user has entered text. Are you using a Text Field or Text Area attribute?

Mark

pruthvikb
04-14-06, 07:54 AM
Hi Mark,

Can u explain more about "You can meet this condition when one of the basket items has a text attribute into which the user has entered text. Are you using a Text Field or Text Area attribute?".
I am not getting this.

I am selecting product attributes from combo box.

Mark Hughes
04-15-06, 01:07 AM
I am selecting product attributes from combo box.

I want to make sure I understand: by "selecting product attributes" do you mean
a) assigning attributes to certain products using the administration interface?
b) what shoppers do when they add products to their basket?

pruthvikb
04-21-06, 09:24 AM
Hi,

a) assigning attributes to certain products using the administration interface?
Yes
b) what shoppers do when they add products to their basket?
Shopper will selects Product Attribute from Combobox. Here each attribute can have diffrent prices

Mark Hughes
04-24-06, 07:12 PM
Hi Kumar,

You asked about &mvt:option:data, but I don't think that is actually what you want. If you are using dropdown menus (combo boxes) then &mvt:option:data will be empty. Only Text Fields and Text Area attributes, not combo boxes, put information in option:data.

But I want to be more helpful. What are you trying to achieve? What do you want to show up where?

Recall:


Can u explain more about "You can meet this condition when one of the basket items has a text attribute into which the user has entered text. Are you using a Text Field or Text Area attribute?".
I am not getting this.

I am selecting product attributes from combo box.

Earlier in the thread, you wrote:


how can we get &mvt:option:attr_code;: &mvt:option:data;

pruthvikb
04-25-06, 07:15 AM
Hi,

We have following code for displaying Product Attributes in Basket Content Page

<mvt:if expr="l.settings:option:option_id">
&mvt:option:attr_code;: &mvt:option:opt_code;
<mvt:elseif expr="NOT ISNULL l.settings:option:data">
&mvt:option:attr_code;: &mvt:option:data;
<mvt:elseif expr="NOT ISNULL l.settings:option:data_logn">
&mvt:option:attr_code;: &mvt:option:data_logn;
<mvt:else>
&mvt:option:attr_code;
</mvt:if>
</mvt:item>

But here &mvt:option:attr_code;: &mvt:option:opt_code;
working.

Here how can we get &mvt:option:attr_code;: &mvt:option:data;


Here Basket screen showing Product Attribute Code. I need Attribute Name
Is it possible?

Here u laready given 'IF' conditions. When 2nd If will execute

Please help on this

wcw
04-25-06, 01:49 PM
I am surprised this thread has gone on for so long. The token for the prompt is not available without a 3rd party module. There is an inexpensive one called Attribute Prompt vs Code module at
http://www.emporiumplus.com/go/wcw/PROD/1AA/1AA00204
It creates the variables and makes them available in the array. So the variable

&mvt:option:attr_code; can be changed to &mvt:option:attr_prompt; Like wise the opt_code to opt_prompt.

The array is created for the bask and order screens.

Mark Hughes
04-26-06, 06:54 PM
We have following code for displaying Product Attributes in Basket Content Page

<mvt:if expr="l.settings:option:option_id">
&mvt:option:attr_code;: &mvt:option:opt_code;
<mvt:elseif expr="NOT ISNULL l.settings:option:data">
&mvt:option:attr_code;: &mvt:option:data;
<mvt:elseif expr="NOT ISNULL l.settings:option:data_logn">
&mvt:option:attr_code;: &mvt:option:data_logn;
<mvt:else>
&mvt:option:attr_code;
</mvt:if>
</mvt:item>

[...]

Here Basket screen showing Product Attribute Code. I need Attribute Name
Is it possible?



WCW is correct. You cannot display the attribute name without a module.



Here u laready given 'IF' conditions. When 2nd If will execute

Please help on this

The second "IF" will not execute when you use combo boxes.

pruthvikb
05-22-06, 09:58 AM
Hi Caped Canadian,

Can u refer any module for this issue.

You said "You can meet this condition when one of the basket items has a text attribute into which the user has entered text. Are you using a Text Field or Text Area attribute?
"
I am not egtting these. Please explain once again

Mark Hughes
05-23-06, 07:20 PM
Hi Kumar,

I have never used the modules that Lance and Bill referred to earlier in this thread, but I expect either will do the job for you.

Please help me to be clearer with my explanation. By"meet this condition" I mean "get <mvt:elseif expr="NOT ISNULL l.settings:option:data"> condition". By "Field or Text Area attribute" I mean NOT a dropdown box (a "combo box" as I believe you call it.).

Should I explain something else?

Mark

P.S. Thanks for calling me "Caped Canadian".