BV Commerce Forum
»
BV Commerce Support
»
Theme Design - HTML, CSS & more
»
changing button images -personalizationServices.GetThemedbutton
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
|
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
It looks for the button in your active theme. |
|
|
|
|
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.
|
|
|
|
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. |
|
|
|
|
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!!
|
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
|
|
|
|
|
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.