Within Yahoo Store RTML Template, this operator is showing as:
The purpose of this operator is to take an argument and convert it to a string.
Let us pretend, that one of our test item has “Saving on Quantity” price value, defined as: 30 5 125 10 200. Where: 1 item price is $30, 5 items price is $125 and 10 items price is $200.
At this case the property @price returns numerical array (30 5 125 10 200), while AS-STRING @price returns text string – 30 5 125 10 200
An year ago, Facebook implemented a “like” button that let users share content that they approve of with each other. 3rd party websites are now also capable of implementing this button so that the site could get more attention on Facebook. These codes will show customers which of their Facebook friends have liked or visited your website.
You could use 2 ways to install the Facebook “Like” button at your store:
1) To enable a new Yahoo Social Media Sharing feature by yourself.
See more info here: http://help.yahoo.com/l/us/yahoo/smallbusiness/store/edit/social/social-03.html
If you are experiencing a difficulties to setup or customize the feature’s appearance on a page, then:
Note: For both versions you have to obtain the Facebook Application ID.
See more info here: http://help.yahoo.com/l/us/yahoo/smallbusiness/store/edit/social/social-06.html
You can find an example of this feature setup at : www.holytrinitystore.com, www.hello-gorgeous.net (drill down to Item pages to see).
How to define “FREE SHIPPING” over a certain amount and how to apply it to different UPS shipping methods
Storeowners who use flat rates, custom rate tables, or other custom methods, are able to define “Free shipping” by adding new conditions to previously defined rules. But how does one define “Free Shipping” if one is using UPS’ built-in methods (UPS Real-Time Rates)? How does one set-up rates that are followed by a statement that says: “Free ground shipping over $100 of your order”?
It’s pretty easy:
1) In the Store’s Shipping Manager go to: Store Manager > Shipping Manager > Ship Rates
Click the “Add Rule” Button, Select location, then on the next page select the UPS Ground method (or any other listed methods based on your preference). Click “Next”.
2) On the next page select the “Rate Table” radio button and proceed to the next page.
3) On this page select “TAXABLE_AMOUNT” from the first select box and then change the second line of the table with these following statements:
a) From: 100 (do not write the dollar/cents sign)
b) Add: -5000.00 (input a large negative value to override any possible shipping charges calculated by UPS)
4) Click “NEXT”. On the next page do NOT check the box “Apply ONLY this rule, even if other rules match”.
Click “Done”. Now you will see that the newly created rate table has been added to your list of Shipping Rates.
To test the new rule, go to “Shipping and Tax Test” page, select the “UPS Ground” shipping method, click “Calculate” and review the result.
Please do not forget to clearly explain a “free shipping” promotion to your store visitors. Add the appropriate notification to your store pages and to shopping cart pages.
If you would like to enhance the functionality of this option by having the ability to:
– Make it possible to show the notification text at your shopping cart pages upon different order conditions,
– Hide/show shipping methods depending on order “Ship To” address (i.e. display only “Second Day” if shipping to HI or AK),
– Exclude certain items from the “free shipping” promotion,
– Prevent placing orders with different shipping methods together in the same basket (i.e. item with the “second day” only method and item with “freight” method only),
– Display and submit a custom form at “Confirmation” page (i.e. “Prescription” form)
Please call us at 908-338-3992 or send us an e-mail to discuss your request or to talk about any other custom modifications.
In the previous “Custom Availability” post we explained how to use the Custom Availability property together with the system Availability property. This method requires basic RTML knowledge.
Next, we will show you how to implement a “Custom availability” text field instead of using the pre-defined property Availability. This method is simpler than the previous one.
First, open a list of store Templates. Then find custom Item-order template.
Click on it to open.
Find the RTML expression WHEN @availability.
Click on @availability.
Click the “New” button and create a NONEMPTY operator. Then click “Replace”. As a result, the NONEMPTY RTML operator will replace the original @availability expression.
Click the “EDIT” button and set the value of NONEMPTY operator to @custom-availability
WHEN NONEMPTY @custom-availability
Find the RTML expression STRING-APPEND:
TEXT STRING-APPEND GRAB TAG tag "em" TEXT "Availability: " @availability
We have to replace @availability property with @custom-availability. For this purpose click on the STRING-APPEND operator and then click the EDIT button. Change @availability to @custom-availability and click update:
WHEN NONEMPTY @custom-availability DIV class "itemavailable" TEXT STRING-APPEND GRAB TAG tag "em" TEXT "Availability: " @custom-availability
Finally, define the custom property @custom-availability (type text) at the item page or at the item type and fulfill it with its necessary value.
In an RTML Template the “APPEND” operator looks like:
This operator joins all sequences pasted within.
NOTE You cannot paste a text string within APPEND operator because it will result in RTML error.
WITH= variable bestsellers-ids-together value APPEND @local-bestsellers-ids @global-bestsellers-ids TEXT bestsellers-ids-together
In this example, we combine two ID sequences. Then we write the resulting sequence into the text spot.
In an RTML Template the “ACTION” operator looks like:
This operator returns a special Yahoo Store URL that will perform a certain action. The possible arguments are :
:email (returns argument mailto: and the e-mail address from the email global variable),
:help (returns http://stores.yahoo.com/help.html),
:search (returns search page URL), and
:show-order (returns Yahoo basket URL).
FORM destination ACTION :show-order method "post"
In the Yahoo Store RTML Template a newly created “>=” operator looks like:
This operator compares two numbers. If the first argument is greater or equal to the second one, then the operator returns “true”.
In this example the operator “>=” checks a loop property “pos”. The loop continues to work as long as the “pos” value is greater or equal to zero.
In a Yahoo Store RTML Template a newly created “<=” operator looks like:
This operator compares two numbers. If the first argument is less than or equal to the second one, then operator returns “true”.
This operator could be used in combination with “IF“, “FOR” and “WHEN” operators.
In this example, the operator “<=” checks a loop property “pos“. The loop continues its work as long as the “pos” value is less or equal to 10.
By default, the Yahoo store system does not include a quantity box on its store pages. After a few changes in the RTML template it will be possible to apply this feature, and customers will then have the possibility to order more than one item.
First, make sure you have editable copies of your store RTML templates.
Find the template that corresponds to adding the items to the shopping cart. Because it is a copy of a default template called add-to-cart, it will be named something such as, your-store-add-to-cart. Click and open it.
Now you will see the template content. At this point, we recommend you make a copy of your existing template by clicking the Copy Template button (just in case if you need to restore it).
At the top of the template content click the operator “IF”. It will become active (not linked, black colored).
Click the button [NEW] at the toolbar. There you will see a selection field called “Complex”, scroll within it to find the operator “INPUT”.
Click the button [CREATE]
The newly created operator will appear in the “basement” area, below the template content. We need to place it before the recent operator IF.
Now, “IF” is active. “INPUT” is in the basement. Click the button [Replace] in the toolbar. These operators will then rotate their places: “IF” will go to the basement area, “INPUT” will become the first operator (active). Now click the button [Paste After] and then “IF” will be replaced after the “INPUT”.
The last step is to customize the operator “INPUT”.
Click it to make it active. Click the button [EDIT] in the top toolbar. Define the following values:
Name – :vwquantity
type – :text
value – 1
maxlength – 3
size – 3
All done. The quantity box will now appear at your store item pages.
If the property is going to be used only on a particular page, it is referred to as “Local” and is located on that page under the “Custom properties” header.
If the property is going to be used on the entire store, then it is called “Global” and is located in the “Variables” section (see page’s Editor toolbar) under “Custom Variables” header.
To add a Local custom property open a particular page, then click the [Edit] button on the Editor toolbar.
Click the [New Property] button. Input the Name of a new property, and select its type.
To add a Global custom property, click the button [Variables] at the Editor toolbar.
Click the button [Define New Variable] on the page toolbar.
Input the Name of a new property, and then select its type.