Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStore"Add to Cart" and the "Buy now" Image buttons localization"Add to Cart" and the "Buy now" Image buttons localization
Previous
 
Next
New Post
8/29/2007 9:15 AM
 

Hi Dimitris,

Your problem about the correct path is a common mistake!

Previously, Store AND WWStore was not able to create two or more stores with different templates inside one dnn instance. Because all files where located inside the folder ..\DesktopModules\WWStore\Templates and shared accross ALL portals. IMHO, it's a shame because one dnn instance can hold thousands web sites! This is why I added the setting "Portal Templates" inside the StoreAdmin module. When this param is checked, the module look for the templates files inside the folder ...\Portals\n\WWStore\Templates allowing to have one template set by portal. If you uncheck it, the module look for the files inside the folder ...\DesktopModules\WWStore\Templates. Moreover, this improvement makes it possible a DNN administrator to download/modify/upload the templates and images directly through the files manager. Previously, it was necessary to have access to the folder ...\DesktopModules\WWStore\Templates via ftp, which is seldom the case when the instance is hosted.

Concerning the link detail image, it's your choice! I think it would be better to apply the same rule even if currently the image do not have text inside. This will permit to have an other image file WITH localized text in the future.

Gilles


We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
New Post
8/29/2007 10:01 AM
 

Hi again,

I do not think that's a good idea, because if you apply a personilized skin (other that DNN Blue, Gay, Orange) you code wil not display any image. Moreover, what about the css class?

Gilles


We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
New Post
8/29/2007 11:16 AM
 

Hi Gilles,

so, that is what the 'Portal Templates' setting is for. Thanx for the  detailed explanation.

So, if i want to create a new WWStore installation PA, i have to add the files in both folders, for handling both cases (using or not using the Portal templates).

Is that correct? In order to test the PA installation, I tried two test cases.

During the 1st, i installed "WWStore_02.00.08_Install.zip" on a clean DNN instance and then installed "WWStore_02.00.09_Install.zip", wcich contained all the necessary changes for implementing the new localized image file changes (new images and source code). But the new image files i' ve created, were inserted only  in side the  "...\DesktopModules\WWStore\Templates" folder.

During the 2nd, i installed "WWStore_02.00.09_Install.zip" on a clean DNN instance and my new files were inserted inside both folders and had no problem.

Why does this happen? Inside the WWStore PA manifest file, each image file is only referenced once.

Finally, about the personalized skin images, i am using the default DNN skins (blue, gray, orange). The code has been tested and everything works fine, meaning that the new images are displayed based on, not only the language, but also on the skin selected.

regards,

Dimitris

 
New Post
8/29/2007 12:32 PM
 

Hi Dimitris,

When you create a new installation you do NOT have to copy the files inside the portal folder. This is done automatically by the Store Admin module when you check "Portal Templates" and save settings. But, IF AND ONLY IF the WWStore folder DO NOT ALREADY EXIST inside the portal folder.
I have create this rule because I do not want that users try to kill me if I overwrite automatically their previous "personalized" templates!

When you install your new version on a "clean" instance, the files are installed inside the ...\DesktopModules\WWStore\Templates. Then, if you check Portal Templates and save settings, the files are copied under ..\Portals\n\WWStore\Templates because this folder DO NOT ALREADY EXIST!

When you have upgraded your instance with your new WWStore version, the NEW files was copied to ...\DesktopModules\WWStore\Templates ONLY! But because the setting Portal Templates was checked, the module load "old" templates files from the portal folder. If you want copy your new files to the portal folder, you have follow this steps:

  • Go to the tab where is the Store Admin module
  • Uncheck Portal Templates and save settings
  • Rename the folder ...\Portals\n\WWStore to ..\Portals\n\WWStoreOLD (or any name different than WWStore). Unfortunaly, DNN File Manager do not allow to rename a folder.
  • Return to the Store Admin module
  • Check Portal Templates and save settings. Now your new files are copied because the folder WWStore DO NOT EXIST inside the portal folder!

You do not understand my remark about the skin modification (probably because my poor english). Try to apply any other skin than the "standard" one, you will see the problem.

Gilles


We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
New Post
8/30/2007 4:14 AM
 

Hi Gilles,

bulls eye, very good explanation. Your concerns about the templates being overriden is correct.

So, I followed your solution and everything worked as expected.

About the skin modification, i think that you are concerned for the case that a custom skin is applied as the portal template skin. You are correct, in such a case, none of the images could be displayed. But i think, that, this is solved by adding another else statement and some new default image files (based on language only) for the situations that a custom skin has been aplied. Using this approach, we have both cases covered and moreover, any user can make code modifications (and create new image files), in order to support skin images customization for every  skin he wants to apply.

Let me know of your thoughts.

regards,

Dimitris

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStore"Add to Cart" and the "Buy now" Image buttons localization"Add to Cart" and the "Buy now" Image buttons localization


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out