• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

AboveAllMotorwerks
#1 Posted : Monday, September 24, 2007 5:26:11 PM(UTC)
AboveAllMotorwerks

Rank: Member

Joined: 5/4/2007(UTC)
Posts: 24

Hi


I have all new buttons that i want to swap out.



when i look at the code, it appear to pull the image URL from a call to PersonalizationServices.GetThemedButton()



However, i cannot find out where you set this. i dont see an admin page setting these variables.



can anyone point me to where this is defined?



thx
Cliff
#2 Posted : Monday, September 24, 2007 6:33:51 PM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

It looks for the button in your active theme.
AboveAllMotorwerks
#3 Posted : Monday, September 24, 2007 6:42:11 PM(UTC)
AboveAllMotorwerks

Rank: Member

Joined: 5/4/2007(UTC)
Posts: 24

but where in the theme is it defined?

is it just by name? ie, addtocart.jpg?

i have looked at every file in my theme, and they arent spelled out there anywhere. thats what i was expecting, some sort of an xml file or something that says the add to cart should be xyz.jpg and the update totals should be abc.jpg

or do i have to just swap out the images for the existing one. i was expecting somewhere to be a setting where these are defined.
Cliff
#4 Posted : Monday, September 24, 2007 7:57:08 PM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

If the image exists in BVModules/Themes/ThemeName/images/buttons, it will be used. The files are PNG by default, but if there is no PNG, it will look for JPG or GIF.

For example, in the code-behind, if the button is set with PersonalizationServices.GetThemedButton("Checkout"), the app will look for Checkout.png in your theme.
AboveAllMotorwerks
#5 Posted : Monday, September 24, 2007 7:58:37 PM(UTC)
AboveAllMotorwerks

Rank: Member

Joined: 5/4/2007(UTC)
Posts: 24

gotcha... so the name used in the code is the filename it looks for ( less the extension ).



this is what i was looking for. Thanks again!!
Cliff
#6 Posted : Monday, September 24, 2007 7:59:16 PM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

Exactly. No problem.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012