Insert "Click for Availability" on Magento Catalog Pages - magento

In Magento 1.7, when you click on a category, and the product catalog for that category comes up, I would like to add the words "Click for Availability" next to or below each item. Can someone please let me know how this can be done?

The file you need to edit is
/app/design/frontend/base/default/template/catalog/product/list.phtml
But editing that file directly is not upgrade-safe, so you'll need to move it to
/app/design/frontend/default/default/template/catalog/product/list.phtml
That will override the base file automatically. Note that there are two view modes--grid and list, both of which are indicated by a comment in the list.phtml file--so be sure to edit both for your change to be visible at all times.
It looks like you'll want to add your line inside the product <li> for grid view, which is line 94 for me. For list view, you should put it inside the the .product-shop div, which is line 52. It's hard to be more specific without knowing exactly what you have in mind. You'll just need to play around with it.

In list.phtml add a button "Check Availability" which on click triggers a JavaScript function
pass this to the function
$_product->isSaleable()
if this is true show in a div Available else not Available
This availability code is already checked in magento

Related

Add buttons to sub-grid view

On the order form, there is a products section that has uses the default Order Product Inline Edit View. This view is not editable, but you can copy it and save it as a different name.
However, when you copy the view, the new view does not display all of the same buttons when viewing the sub-grid.
default view:
copied view (the lock pricing, move up and move down buttons are missing):
The copied view shows the + button and it's drop down menu correctly. Why hasn't it copied the other buttons, and how can i get them to show on my custom view?
I am happy to edit xml and upload that back to CRM if necessary.
Update:
FYI, this is all a pointless effort as the word template ignores the sequence order. What an utter waste of time.
I'm going to guess it's because the default view on the order of order products is a special one. It has special behaviours that arn't seen in the rest of 365, i.e. you don't get up, down, or lock on other views.
I would assume that the extra buttons only get shown on that default view and arn't really supported outside of that view.
Turns out it is actually quite easy to show these buttons for other views using the ribbon workbench.
Right click on the button in ribbon workbench under the subgrid section and click on customise
Select the command in the "solution elements" pane at the bottom
In the bottom right hand pane, right click on the enable rule "Mscrm.IsInlineEditView" and click "Remove from Command"
Publish
These buttons now show up for all views.

how do I custom design for menu item?

I have menu in which there are two levels. After I added the third and fourth level of categories from the back end, I want the third sub-category in the menu to be displayed differently I want to change its appearance. Can i do it in back end custom design? Or where should I look for the code? I have tried editing the top menu p html
You should edit the relevant PHTML file in order to do this.
Sometimes you will have to edit menu.js as well written in prototype. if you are not familiar with it use a jQuery code.

add left and right bars to joomla article

I'm not very familiar with joomla, I added new article , But the left and right positions (right & left bars) don't appear in the two sides, How to add them please?
Thank you
If you go to Module Manager, then select the modules you want to show, ensure they are enabled on all pages. I wouldn't have though you have to create html page using the article manager. Joomla isnt really built for this. Regards
if i am not wrong, then i think you want to add two columns in your article page.
There is a simplest want in you article editor click on the html button which show you a new window where you can set your html. And for two side that is left and right, just create a html page and paste in only the body content into your joomla editor and if you want to add some style then define id's or class's to your article or you can set inline css..
hope this will help you..

Want to add custom option from the frontend of magento

I want to add a button on product view page. By clicking on that button, there will appear two text box fields which are custom options. When I open that product from the backend, I can find that there are custom options which I added, but I need to view it in the frontend by clicking the button only.
First of all, Products are added by the administrator, and are fully controller also by the Administrator. Only thing is that you (as a customer) can only see the custom options which are available for a particular product (and as provided by the admin).
In your particular case, go to the proper Admin page (Edit / Add a new Product and go to its "Custom Options" tab). Now provide options for two text fields, with two different labels, and then save that product. Now if you go to the front-end to view that product, you will find the product details, along with the two custom options added from the admin section.
Also if you want to add a button in the front-end of each product view page, which when clicked will show the custom options, then you need to create a button & write a JavaScript for opening the container of the Custom Options.
Hope it helps.
Edit:-
First find out the full HTML section of the Custom Options, or in other words, the HTML container of the Custom Options in the Product view page. Provide a unique "id" to the container "DIV" element and make that element hidden. Also provide the HTML button anywhere in the view page, and call the unique ID of the "DIV" element in the "onclick" event of the button. A simple code snippet will be like:-
<div id="any_unique_id" style="display: none;">
// Whole Custom Options
</div>
<button onclick="$('any_unique_id').show();">Click here to view the Custom Options</button>
checkout Knowledge Craving 2nd part's answer

codeigniter with flexgrid

I have used href link in the flexigrid rows. on Click it takes me to another page. But on click of the row its making the href link to disappear and its visible only after unselecting row.
Is there any option to stop selecting the row in flexigrid or how to make the link test visible even on selecting the rows.
Please need ur help immd.
Add this condition in flexigrid.js file
if(!p.disableSelect) on line 728 ie. inside $(this).click{
and
add this line in flexigrid_helper.php inside the build_grid_js
$grid_js .= "disableSelect : 'true' ,";
thats it. Its working!

Resources