[ic] /n in product table caused double entry in store section of comment field

kerry kerry at basicq.com
Fri Apr 27 16:25:04 UTC 2018



On 04/27/2018 07:40 AM, kerry wrote:
> 
> 
> On 04/27/2018 06:22 AM, kerry at basicq.com wrote:
>>>> On Apr 26, 2018, at 2:55 PM, kerry at basicq.com wrote:
>>>>
>>>> While setting up working model, I tried inserting /n in the data in one
>>>> of
>>>> my products, and to my surprise, it did not make a new line break, but
>>>> duplicated the information, not just in the product where I inserted it,
>>>> but in all of the products. I deleted the product code I entered it in,
>>>> but that did not change the rest of the products. Is there any easy way
>>>> to
>>>> fix this?
>>>
>>>
>>>
>>> Hi Kerry, not sure if this is your issue, but the usual newline
>>> replacement character is with a backslash: \n not /n.
>>>
>>> Best,
>>>
>>> David
>>> --
>>> David Christensen
>>> End Point Corporation
>>> david at endpoint.com
>>> 785-727-1171
>>>
>>>
>>>
>>> _______________________________________________
>>> interchange-users mailing list
>>> interchange-users at icdevgroup.org
>>> https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.icdevgroup.org%2fmailman%2flistinfo%2finterchange-users&c=E,1,HmVGtpj7NM-QvrXFJW751mIZFQO2_2EYqEvD02jysTR8USKgYkB5mCuI65LulfFI7zwswsQ7YHWUrG0XS-qvV_UjgeQ_Ldh6G03zO12Xv_vps36ivD4ruw,,&typo=0
>>>
>> I found another clue looking at the code for one of the pages.
>>
>> <input type=hidden name=mv_form_profile value=check_opt>
>>
>> This in after the first comment text and the second comment text
>> I uploaded a product file from the 16th of April that did not have double
>> text, but I still get the double test in the store. At this point, I am
>> not 100 percent sure that the \n code caused it as I may not have noticed
>> it until after I had entered it because I was looking for the results of
>> entering it.
>>
>> Kerry
>>
>>
>> _______________________________________________
>> interchange-users mailing list
>> interchange-users at icdevgroup.org
>> https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.icdevgroup.org%2fmailman%2flistinfo%2finterchange-users&c=E,1,1Lbsaxhxnm14RZiBuEjCHsDZqyBKnuY5THv6JIbaLHz5KK-fI7iRclJOa0ffYkSgZS0yeYeSHJ4rNYrNdV_txTu4lWcIQSkHHIy0NkL5cAvKdnDu&typo=0
>>
> Well, maybe not as it is in both of my strap carts, dev and live.
> But did find  this <input type="hidden" name="mv_session_id"
> value="kNF78gKY">
>  in live that is not in the dev copy.
> Kerry
> 

I think I found my own answer. I had added some code I used in present
cart to the flypage to notify customers when an item has to be shipped
by truck.
Here it the table from the flypage with the code commented out.
[form-session-id]

<table class="table">
<tr>
	<td>
		[if-item-field image]
			<img src="/interchange-5/en_US/items/[item-field image]"
alt="[item-filter encode_entities][item-description][/item-filter]">
		[/if-item-field]
	</td>
	
	<td>
		[item-field comment]

	    [if ordered [item-code]]
	        <p style="margin-top:1em" class="text-info">[msg arg.0="[page
ord/basket]" arg.1="</a>"]This item is currently in your %sshopping
cart%s.[/msg]</p>
	    [/if]

		[edisplay show_var=0]

		[if-item-field option_type eq Matrix]
			[set check_opt]
				&success=ord/basket
				mv_sku=mandatory Need to select an option.
			[/set]
			<input type=hidden name=mv_form_profile value=check_opt>
		[/if-item-field]
		[if-item-field option_type eq Simple]
			[seti check_opt]
				&success=ord/basket
				[query
					list=1
					sql="select o_group,o_label from options where sku='[item-code]'"
				]mv_order_[sql-code]=mandatory Need to select [sql-param o_label]
				[/query]
			[/seti]
			<input type=hidden name=mv_form_profile value=check_opt>
		[/if-item-field]
               [comment]  [item-field comment]<br>  <<<<<<<<<<added code
         [if data products::width::[item-code] > 160] [L]<span
style="color : red;"><b>Truck Shipping : $170</b></span> [/L][/if]
         [if data products::width::[item-code] > 120][and data
products::width::[item-code] < 160] [L]<span style="color :
red;"><b>Truck Shipping : $130</b></span> [/L][/if] [/comment]
       [comment]  [if data products::width::[item-code] > 108][and data
products::width::[item-code] < 120] [L]<span style="color :
red;"><b>FedEx 3 Day Select Oversize : $38</b></span> [/L]
[/if] [/comment]                 <<<---emd of added code
		[table-organize cols=2 table=' class="table table-bordered
table-condensed small" style="margin-top:1em"']
			[item-options td=1 label=1 bold=1 price=1 blank_label="--select--"]
		[/table-organize]
	</td>
</tr>
 I would still like the code in ther, just not sure where to put it
where it functions without breaking stuff.
back to more testing
Kerry
-- 
BasicQ Inc.
PO Box 381
Boca Raton, FL 33429

Phone: 800-448-0665
email: kerry at basicq.com
www.basicq.com
https://decor.basicq.com



More information about the interchange-users mailing list