Set Global Buttons

General ShopSite user discussion

Set Global Buttons

Postby ajhauser » Tue Dec 06, 2011 4:30 pm

Hello Everyone,
Let me preface this by saying I am completely new to ShopSite and working through my first storefront. The store in question can be found at: http://brotherscountrysupply.com/store/

I am having a hard time finding specifics in the forum, so I hope it's ok that I'm posting new topics.

I have ShopSite Pro for this setup:

Is there a way to set buttons globally? In my example you can see that I did this manually for the first item on the homepage - but how do I set the default? I have the same question for all other buttons as well. Can I set them all in one place?

Thanks very much!
Website Design, Website Development, eCommerce and Hosting
ajhauser
 
Posts: 84
Joined: Tue Dec 06, 2011 4:18 pm
Location: Earlville - the land of Earls

Re: Set Global Buttons

Postby loren_d_c » Tue Dec 06, 2011 4:42 pm

In ShopSite Pro you can set the default Add to Cart and View Cart buttons used for new products in the Preferences -> Store Text -> Store Pages menu.

This does not change the order buttons set for existing products, but this can be done for all products using the PowerEdit feature. Go to the Products menu, click List All Products, select all of the products in the list (click the top one in the list, scroll to the bottom, hold the Shift key down and click the bottom one, and it should select all products in between) and click the PowerEdit button to the right of the list. On the subsequent screen go to the bottom of the Layout box and select Add to Cart Button and View Cart Button, select the 'Global - same change to all selected products' radio button, and then click Proceed. On the subsequent screen you can select the Add to Cart and View Cart button settings you want, and when you save these settings they will be applied to all of the products you initially selected on the Products menu.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: Set Global Buttons

Postby ajhauser » Tue Dec 06, 2011 11:51 pm

Extremely helpful reply!!
Thank you very much.

Couple quick follow ups. I have my text fields and links displaying properly, but the item details and layout on this page need some tweaking: http://brotherscountrysupply.com/store/index.html

It seems that in my template this is controlled by the following code, or loop, but I do not know how to make changes to it:

Code: Select all
[-- IF PAGE.NumProducts 0 --]
 [-- ELSE --]
 <table class="Products" width="100%" align="center" border="[-- VAR.border --]" cellpadding="3">
  [-- LOOP PRODUCTS PAGE.Columns --]
   <td valign="top" align="[-- VAR.align --]">[-- PRODUCT --]</td>
  [-- END_LOOP PRODUCTS --]
 </table>
 [-- END_IF --]


I can see is the main table tags, but where would I bold and add a line break after the price?
I have my global "View Cart" and "More Info" buttons defined - where could I add code to make them show up to the right of the "Add to Cart" button?

Thanks very very much.
Website Design, Website Development, eCommerce and Hosting
ajhauser
 
Posts: 84
Joined: Tue Dec 06, 2011 4:18 pm
Location: Earlville - the land of Earls

Re: Set Global Buttons

Postby Jim » Wed Dec 07, 2011 7:15 am

The formatting of the product is defined in the product template, the code you gave is from the page template. In that code is the tag [-- PRODUCT --], which will be replaced by the output of the product template.

So to add the bold and line break you would modify the product template (or perhaps an include file which contains the price). So open the product template assigned to a product and in the section [-- DEFINE PRODUCT --] check for code that is displaying the price. If there is a statement such as [-- INCLUDE <filename> PROCESS --] then you will need to edit the <filename> template.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Set Global Buttons

Postby ajhauser » Thu Dec 08, 2011 12:38 am

I understand the INCLUDE part of this code, but what does the PROCESS part do - just run the include?

Code: Select all
[-- INCLUDE <filename> PROCESS --]
Website Design, Website Development, eCommerce and Hosting
ajhauser
 
Posts: 84
Joined: Tue Dec 06, 2011 4:18 pm
Location: Earlville - the land of Earls

Re: Set Global Buttons

Postby robm » Thu Dec 08, 2011 6:58 am

The "PROCESS" command tells ShopSite to look in the include for ShopSite tags and "process" them. If your include only has html/js/css code in it, you can leave off the PROCESS part, which speeds up the publish.

Rob
robm
 
Posts: 463
Joined: Fri Aug 04, 2006 5:46 pm
Location: Connecticut

Re: Set Global Buttons

Postby ajhauser » Thu Dec 08, 2011 9:46 pm

Oh ok that makes sense.
And the "REMOVE HTML" addition just strips out all the HTML tags in a chunk of content?
Website Design, Website Development, eCommerce and Hosting
ajhauser
 
Posts: 84
Joined: Tue Dec 06, 2011 4:18 pm
Location: Earlville - the land of Earls

Re: Set Global Buttons

Postby robm » Fri Dec 09, 2011 6:09 am

ajhauser wrote:Oh ok that makes sense.
And the "REMOVE HTML" addition just strips out all the HTML tags in a chunk of content?

That's correct. :)

Rob
robm
 
Posts: 463
Joined: Fri Aug 04, 2006 5:46 pm
Location: Connecticut


Return to User Forum

Who is online

Users browsing this forum: No registered users and 86 guests