Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

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 ForumsStoreStoreFormatting help needed - StoreAccountWrapper, OrderHistoryDetails, AddressesFormatting help needed - StoreAccountWrapper, OrderHistoryDetails, Addresses
Previous
 
Next
New Post
9/10/2011 1:35 PM
 

Hi all,

I'm really struggling to get final approval to make a store we've developed live because of a few outstanding formatting issues which I'm sure are really simple but I'm really struggling to solve.

1. StoreAccountWrapper text (i.e. BillingAddress and ShippingAddress, I can change the font size of the StoreAccountWrapper text (as below) but I can't get the font color to change no matter what I do. I need to change the color to #fefefe as the site has a dark background and the StoreAccountWrapper text is coming up Black. Nothing I can do in Template.css seems to affect the font color.

div.StoreAccountWrapper{font:24px Verdana, Arial, Helvetica, sans-serif; text-align:center;}

2. Ordering of address items in OrderHistoryDetails and PayPal. The OrderHistoryDetails form and PayPal payment form is displaying the address in the following order: -

BuyerName
Streetname
BuildingNo
TownName
RegionName
PostCode

The required address format is: -

BuyerName
BuildingNo Streetname
TownName
RegionName
Post Code

I can't see how I can change the ordering of the address lines above for the orderHistoryDetails and PayPal confirmation displays (I'm assuming when I change one then the other will change too?)

3. How can I make some fields in Billing Address mandatory but only optional in Shipping Address if different? The products we will be selling will often be a gift for someone else and the purchaser may not wish to give or know the email address or telephone numbers of the person the gift is being shipped to.

I have been trying to sort out these issue for a couple of days now and I'm not making any progress.

Any help would be much appreciated.

Best regards,

Alan

 
New Post
9/11/2011 12:01 AM
 
Hi Alan,

Could you specify the Store version you use? I have changed several things in the style sheets in the last versions, this could help me to be more specific.

1) The StoreAccountWrapper is the main div used by all controls in the Store Account module, you should modify a more inner class. As a sample, the "font-size: 24px" is probably not applyed because inner classes can have another font-size defined. As the name implied "Cascading Style Sheet" can produce an unwanted result! What you have defined can't works in the cart detail (with the default style sheet) because the class table.StoreCartDetail have a default font-size of 12px. It's probably the same behavior you encounter for the font color. You should use FireBug with FireFox or the F12 key with IE8/9 to inspect the defined style and discover which class to change.

2) You have to edit the StoreAddress.ascx control located in the folder ...\DesktopModules\Store\Providers\AddressProviders\DefaultAddressProvider to reorder the fields. Don't delete any controls, the code can fill them with value. If your remove a field without modify the source code, you will have one or several errors. Don't forget to backup your modified control BEFORE upgrade the module with a future version, because your changes will be overriden!

3) You can't have two different address because both the billing and shipping controls use the same StroreAddress.ascx control! You could do it by changing the source code but it's not so simple and you will loose future compatibility.

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
12/6/2011 11:39 AM
 
Hi Gilles,
we can remove some of the fields (such as region, which does not make sense in Europe) by adding a display:none on the corresponding row in storeaddress.ascx; however, it still requires a value to proceed to the next step. How can we fake/insert a non-empty string in those fields? Could you suggest something without having to go and change the corresponding .cs source file?
Yes, it's a dirty patch, but what else can we do?
Franco
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreFormatting help needed - StoreAccountWrapper, OrderHistoryDetails, AddressesFormatting help needed - StoreAccountWrapper, OrderHistoryDetails, Addresses


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