Page 1 of 1

Link to more info page going to wrong directory

PostPosted: Wed Jul 07, 2010 5:44 pm
by kayo
Hit the hour mark and need some help.

Our client's product pages are all displayed in the /store directory.... but the link to the more info page points up one directory - where the page is not found. We do see the more info page in the /store directory and can pull it up manually.

Where is the url path for the more info page controlled? any code we might add to the template to force it is appreciated.

PostPosted: Wed Jul 07, 2010 6:54 pm
by ShopSite Lauren
The path to the more information pages is controlled by going to Products > Edit Product Info, and scrolling to the More Information File Name field. If you have a "/" in that field it will be published in a new directory. For example if you have "product/my-product-name.html" then the more information page will be published to "http://www.mydomain.com/store/product/my-product-name.html" In this scenerio, the directory "product" would need to be created before ShopSite would be able to create the page. ShopSite cannot create pages in directories which do not yet exist.

PostPosted: Wed Jul 07, 2010 8:08 pm
by Jim
What is the authorized url for the store? You can find it under Preferences > Hosting Services in the Store Settings section under Store URL:
If you host blocks the Hosting Services section go to Images, select an image in the media directory and click the Edit Images button and near the top of the page under the image name will be the url to the image. Post that full url.

By default ShopSite publishes to the authorized url so if that is set to the root domain that would be why the moreinfo pages are in that location.

thank

PostPosted: Fri Jul 09, 2010 8:11 am
by kayo
thank you lauren and jim...

lauren - it works if we add the /store/product.html to that field but with over 700 products, we we're hoping for default population of the product names. (it won't work if we just add store/ to that field - doesn't pick up the prod. name unless we add it.


jim... the authorized store directory seems to be the issue - it is just our root directory (www.storename.com) and not including /store

Is there a file on the server I could access to manually change that to include the /store directory?

thanks in advance!

kris

PostPosted: Fri Jul 09, 2010 8:38 am
by kayo
Jim...

I found the file to change the path (vibrant.aa) - I've added /store to the output dir. section. the changes are reflected in the preferences > hosting section .

But, still getting the same problem. When selecting the link on the product, it still goes up one directory to try and locate the more info page.

I've turned it on/off, force published, etc... and still not taking. Is there something in our template that we can add to force the path?

thanks,

kris

PostPosted: Fri Jul 09, 2010 10:31 am
by Jim
What is the code in your template that is creating the link?

PostPosted: Sun Jul 11, 2010 10:33 am
by kayo
Jim...

We are using the default product layout for testing. here it is:


# Generic Product Template with No "View Cart" button

#########################
[-- DEFINE SUBPRODUCT --]
#########################
[-- IF VAR.MoreInfoTemplate --]
<div class="Subproduct">
<form action="[-- SHOPPING_CART_URL BASE --]/order.cgi" method=post>
[-- INCLUDE Subproduct-Name PROCESS --]
[-- INCLUDE Subproduct-Price PROCESS --]
[-- INCLUDE Subproduct-AddToCartButton PROCESS --]
</div>
[-- ELSE --]
[-- INCLUDE Subproduct-Name PROCESS --]
[-- INCLUDE Product-Price PROCESS --]
[-- INCLUDE Subproduct-AddToCartButton PROCESS --]
[-- END_IF --]

#############################
[-- END_DEFINE SUBPRODUCT --]
#############################



######################
[-- DEFINE PRODUCT --]
######################
### Set a bunch of variables ###
[-- VAR.TableLayout no --]
#[-- VAR.Form no --]
[-- VAR.Options no --]
[-- VAR.Quantity no --]
[-- VAR.Graphic no --]

### Start the form for Add to Cart button ###
[-- IF PRODUCT.Subproduct --]
# do nothing
[-- ELSE --]
<form action="[-- SHOPPING_CART_URL BASE --]/order.cgi" method=post>
[-- END_IF --]

#####################
# GRAPHIC ALIGNMENT #
#####################
[-- INCLUDE Product-GraphicAlign PROCESS --]

####################
# PRODUCT GRAPHIC #
####################
[-- INCLUDE Product-Graphic PROCESS --]

########################
# PRODUCT NAME #
########################
[-- INCLUDE Product-Name PROCESS --]

########################
# PRODUCT SUBPRODUCTS #
########################
[-- IF PRODUCT.Subproduct --]
# Product has subproducts, so just show description for this product
# and then loop through subproducts
[-- INCLUDE Product-Description PROCESS --]

[-- VAR.MoreInfo no --]

[-- LOOP SUBPRODUCTS --]
[-- SUBPRODUCTS --]
[-- END_LOOP SUBPRODUCTS --]

[-- ELSE --]
# Product does not have subproducts

####################
# PRODUCT PRICE #
####################
[-- IF PRODUCT.QuantityPricing --]
#do nothing
[-- ELSE --]
[-- INCLUDE Product-Price PROCESS --]
[-- END_IF --]

########################
# PRODUCT SKU #
########################
[-- INCLUDE Product-Sku PROCESS --]

########################
# PRODUCT DESCRIPTION #
########################
[-- INCLUDE Product-Description PROCESS --]

#######################
# ADD TO CART BUTTON #
#######################
[-- INCLUDE Product-AddToCartButton PROCESS --]

# end the IF PRODUCT.subproducts
[-- END_IF --]

###########################
# PRODUCT GRAPHIC #
# align=right, wrap=off #
###########################
[-- INCLUDE Product-GraphicRight PROCESS --]

[-- IF PRODUCT.Subproduct --]
# do nothing
[-- ELSE --]
</form>
[-- END_IF --]

[-- END_DEFINE PRODUCT --]



#############################
[-- DEFINE MORE_INFO_PAGE --]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
#############################
[-- VAR.MoreInfo "yes" --]

[-- IF VAR.MoreInfoTemplate --]
[-- INCLUDE VAR.MoreInfoTemplate PROCESS --]
[-- ELSE --]
[-- INCLUDE Classic-MoreInfoPage PROCESS --]
[-- END_IF --]


[-- VAR.MoreInfo "" --]
[-- END_DEFINE MORE_INFO_PAGE --]

PostPosted: Mon Jul 12, 2010 9:55 am
by Jim
The actual code that is being used can be found in the file that is include by this statement [-- INCLUDE Product-Graphic PROCESS --] in the template file you posted.. So the file to look in is Product-Graphic in the includes directory.

The code being executed if an image is used is
Code: Select all
 <a href="[-- PRODUCT.MoreInfoURL --]">[-- PRODUCT.Graphic --]</a>


The Product.MoreInfoURL is constructed from your authorized url in the store .auth file (vibrant.auth) with the moreinfo filename appended. It does not use the setting from the vibrant.aa file you modified. Note that I believe all images also use the authorized url for their base url also so this may cause problems with images.

Although there are ways to work around this the best solution is to have an authfile (vibrant.auth) that is correct for your store installation.

If you want to work around the issue without adding the /store/filename to the moreinfo filename field you would need to modify the template and add a /store after the [-- PRODUCT.MoreInfoURL --] whereever it is used in the template.

Re: Link to more info page going to wrong directory

PostPosted: Tue Sep 14, 2010 6:02 am
by avefenix
If I have 'something.htm' in the product File name upload field (more info page file name spec), I just want to refer to it with a [-- product.File_name --] or such, and I can't find it.

Can you help?

Thanks very much

Re: Link to more info page going to wrong directory

PostPosted: Tue Sep 14, 2010 9:03 am
by Jim
There is no tag [-- product.File_name --] the tag for the moreinfo file name is [-- PRODUCT.MoreInformationFileName --]

Re: Link to more info page going to wrong directory

PostPosted: Tue Sep 14, 2010 1:10 pm
by ShopSite Lauren
The tag for the more information page produces the full URL to the more information page:

[-- PRODUCT.MoreInfoURL --]

There isn't a tag (that I am aware of) which produces just the file name.

-Lauren