Translating theme: Add to cart button? - bigcartel

I've been translating a theme by simply customizing the HTML, but I've run into a problem:
The "Add to cart" button on a product page. I can translate the label on the button, but when you click the button the text changes from "Add to cart" to "Adding..." and then to "Added!".
Neither "Adding..." nor "Added!" are anywhere to be found the HTML of the theme, so I'm wondering where I should look if I want to translate those?

The "Adding", "Added" response comes from the theme's javascript - unfortunately that's hard-coded in and there's not a way to change it. You may want to try modifying another theme that doesn't use ajax to add products to your cart, like Sexy, Luna, or Nova - then you should be able to have more control over translating your store completely.

Related

django form add new rows upon changing to edit

Here's my use case:
I'd like to display the information about something first using django_tables2, with a button on the top right corner called "Edit", once a user hits "Edit", at the bottom of the table, display a button called "Add New Record", and once the user clicks that button, a bunch of input fields pop up to let users enter values for each field, also the user could continue to click "Add new Record" to keep adding new.
How can I achieve this in Django?
I've read a lot of examples on stackoverflow but didn't find anything tailored to this particular case.
Thanks a lot.
Let's dive right into listing out what you want to do and the requirements you'll need to do so.
You basically want to toggle hiding and showing some functionality for this web page. This is easily accomplished by including the "Edit" button, "Add New Record" button, and popup (most likely in its own <div> somewhere in the page). So the "Edit" button will have the display set to something, be it inline, block, etc., while the "Add New Record" and popup would have a display of "none" or however it is you wish to hide it.
You've got the stuff set up and ready to go but now you need to show it when you click the "Edit" button. This is generally accomplished through Javascript. Just find the "Add New Record" button and switch the visibility.
When you click on the "Add" button you want to display a popup. This can be done in a variety of ways with different libraries. One of my personal favorites is using jquery's blockUI. Why? It doesn't allow the user to click anywhere except in the popup so it's a quick way to handle users trying to reach outside the scope of the popup.
So you've got all the new rows added and you are done editing. Maybe you have a "Save" button or something like that where you can click. When you do, you'll want to push all those new rows you just added to the database. Django handles this well and you could do something like include the new rows in part of the POST request or however you care to implement this solution.
So there's a bit of work ahead of you to get this page up and running with the exact functionality you need but hopefully this starts steering you in the right direction of where you need to go.

Disable online ordering facility from opencart

I want to disable online ordering facility from open cart. I want to disable following features
My account
Wish List
shopping cart
Checkout
How to do those things? The reason is the disable it, Now is the very beginning of the web site. Latter we'll add those features too
You can always disable them with CSS? since you want to re-enable them later
for instance
In my store the cart button is .product-grid .cart .button
So just open your stylesheet.css file in catalog/view/theme/YOURTHEME/stylesheet/stylesheet.css
.product-grid .cart .button{
display:none
}
make sure you put it in the bottom of your stylesheet or it might not work since css looks for the last style
If you are not sure how to find all that info
Right click on your cart button inspect element
On the right side you will see a box Styles
Under it you will see the style like: .product-grid .cart .button
or something else depending on your theme

Replace button on email form in CRM 2011

Please look at the below E-Mail form.
And you can see one button called "Insert Template" highlighted with red color. How can we replace(hide it and add new one) this button with our own custom button like, we can hide the same named button on ribbon through XML...?
That button isn't on the ribbon, it's a part of the rich editor control. There is no supported way to change those buttons that I know, so you'll have to go with some JavaScript as #lazarus suggested.

MENU item selected

I have a menu created in ASP.NET master page. I have implemented CSS properties to menu items like hover and link, but I am not able to implement the properties for changing the color of the selected item in the menu.
Do I need to write any JavaScript or jQuery code for identifying the selected item in the menu? Please help me, as I am new to this type of menu items.
if you mean that you want to change the color of a menu item persistently (like, say, the current page tab of a navigation menu is always some particular color), you can do this in ASP by adding a class or id attribute to the menu item when it is clicked. I'm not an ASP kind of guy, but in PHP, you can do it by doing something like:
<li>page #n</li>
and then when the page in question is loaded, the navigation code should say something like:
if $_GET[page]=n then echo " class=\"selected\"" into the anchor tag.
know what i mean? I didn't type out the code for the above if statement because I'm pretty sure ASP is a little different from PHP, and you would have to translate anyway, but I hope this is helpful.
Andy
Edit: ## Here's my ASP guesswork after a brief encounter with google: ##
<li
<%
if Request.QueryString("page")==n Then
Response.Write(" class=\"selected\"")
%>
>Page #n</li>

How to add a hyperlink column in an UltraWebgrid that will redirect me to a popup window

I am pretty new to Infragistics controls and finding it hard to add a hyperlink column to the ultraweb grid. Can anyone help me out with this.
Currently, I am binding the data coming from the Database to the grid.
To this data I need to add a hyperlink column "View" that will redirect me to a popup.
I need to pass some values from this page to the popup.
Need pointers if this can be done on Javascript.
I am unable to get the code anywhere.
It would be really helpful if someone can help me out
Regards,
Sunitha
If you know HTML it is actually pretty simple to do. On the Initialize RowLayout method of the UltraGrid and reference the cell you want the hyperlink to go into and within the text property place the link there using HTML and include parameters within the HTML to pass to the popup.
If you are using a fairly recent version of Infragistics, they have a Modal Popup window that you can use which is fairly easy to integrate and use, and with this you do not need a javascript popup. You can use the ClientSideEvent BeforeSelectChangeHandler to open the Modal popup and pass values into there by referring to other cells within the row.