close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How select and style JSON elements

Thread began 3/27/2017 11:20 am by Justin@AdventDesign | Last modified 3/29/2017 4:00 pm by Ray Borduin | 88 views | 10 replies |

Justin@AdventDesign

How select and style JSON elements

I'm having a heck of a time trying to custom style some elements generated through eCart. See the screen caps attached for the checkout page. How do I select that "Change Address" button? Inspector only shows JSON link and I can't figure out from that file what the selector should be. Also, the payment_wrapper sets a fixed height of 59px inline (seems a bad way to do this). I need to increase that height to account for the height of my standard button stylings. How do I do that?

Sign in to reply to this post

Justin@AdventDesign

Yikes! Just discovered the billing and shipping containing divs have height set as an inline style too! Styling those form elements to match the rest of my site ends up clipping form element contents! I understand the slick transition you were going after, but by making those heights a fixed pixel height, it's making it very, very difficult to style. Can this be modified?

Sign in to reply to this post

Ray BorduinWebAssist

The height is calculated through javascript based on the height when the page opens and set through the script. This is so the transition effect can take place when it is collapsed.

Do you have a url where I can view your page? I can use that to see what styles you would need to adjust. Just let me know what you are trying to change and I can help show you where it can be updated.

Sign in to reply to this post

Justin@AdventDesign

Yeah, I figured out the height situation was automatic. I was checking with browser width with break points and thats where I was seeing the clipping if I wouldn't reload the page. Height still seems to be setting too tall, but I'm going nuts trying to get a layout set for 790 pixels wide to go to the full width of my layout.

See PM for link. You'll need to add a few things to the cart and go through a bit of the checkout process. After adding the address in, it's the "Change Address" button I can't figure out.

Sign in to reply to this post

Justin@AdventDesign

Oh and also, how do I change the text of that "Submit" button at the bottom of that page below the "Change Address"?

Sign in to reply to this post

Justin@AdventDesign

And one more last question... I've all but given up on manipulating the webassist layout for the form at the top of that checkout page to fit my layout nicely. At this point, I'd like to chuck the entire webassist layout and start from scratch. What page element do I need to keep for it to set that auto height and hide properly on the button click?

Sign in to reply to this post

Ray BorduinWebAssist

You can style that button with:

#wa_Show_Checkout .eC_FormButton {
background-color: #b0a091;
border: medium none !important;
color: white;
font-family: Taviraj,Georgia,Times,"Times New Roman",serif;
padding: 0.7em 1.2em;
}

You can change the text on the checkout button from the confirm.php page.

If you give me FTP access I'll look into why it is setting the form height too high. I'll have to debug the javascript that does it.

Sign in to reply to this post

Justin@AdventDesign

Thanks John, I'll give that a shot. I may take you up on your offer. As mentioned, I've tinkered and tinkered and the layout is still a mess on my foundation 6 based site. At this point, I'd like to strip all the web assist html/css with the exception of what is needed for validations and the height setting. Can you tell me what element/class the system looks for to set that height? I'd like to try stripping to essentials first and get my display right before I troubleshoot the height.

Sign in to reply to this post

Ray BorduinWebAssist

Sorry that was me. I had logged in as another user and forgot to sign out before replying.

Deleting and stripping tags is risky business because the javascript is depends on it. You can find the code on the paymentoptions.js file.

For determining the height it just finds the "Shipping" and "Billing" fieldsets and then finds the parent node and tries to determine its natural height.

Sign in to reply to this post

Justin@AdventDesign

I see a lot of text throughout the file that says "submit". Any chance you could point me to what line?

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...