So...
I want to add a field for product's (add/edit) page in admin panel where will be a checkbox or a Boolean option (yes/no) which will be displaying to the product's front page. I know how to do the last part, and where "last part" I mean how to display it on the product page but I have no clue how I could add another field to the products admin add/edit page.
OpenCart version: 3.0.2
I would be grateful if you guys help me out to solve that :)
Thank you!
Admin panel:
1. Catalog -> Options - to create new product options
2. Catalog -> Products -> Edit -> Option(tab) - assign created before option to currently editing product
Related
As you see in image below after selection of product attribute i want to filter the options based on the selected attribute_id
this is in rails_admin
I'm sorry to say there's no builtin way to do this.
You'll have to clone the existing belongs to field.
Check out the field implementation
https://github.com/sferik/rails_admin/blob/master/lib/rails_admin/config/fields/types/belongs_to_association.rb
And its view
https://github.com/sferik/rails_admin/blob/master/app/views/rails_admin/main/_form_filtering_select.html.haml
You'll find more details on how to create your own custom field here
https://github.com/sferik/rails_admin/wiki/Custom-field
I am working on an E-Commerce website and my requirement is to show URLs something like following.
"../example.com/Electronics/Home-Audio-and-Theater/Portable-Audio/iPods"
Where Electronics is Main category and all of the subsequent parts are subcategories.
I have a Menu which shows level upto iPods(3rd level). I want that on click of any level the URL should be created accordingly. For Example:-
If I click on Electronics the URL should be:-
../example.com/Electronics
If clicked on "Home-Audio-and-Theater"
example.com/Electronics/Home-Audio-and-Theater
and so on.
All of the Names of levels are dynamic so I can't create controller for each level.
I need a technique by which I can show these URLs according to menu item clicked and hit the controller.
Please suggest ideas for this.
Thank You
I'm trying to make a link that can open or go to other page that display several categories on one page, like this: mugs, bags, and books
Is it possible to achieve this without using deface or modifying any page?
Maybe a normal link like:
https://www.example.com/t/categories/mugs,bags,books
https://www.example.com/products?taxon=1,3,5
I've tried both of them. I get error from the former and get the first category from the latter.
If deface is the only solution, how to do it if I want the link to look like the first link?
If it helps, I use rails 4.2.1 and spree 3.0.1.
I don't think you get this sort of functionality by default in Spree. You're going to have to come up with a custom action that is capable of accepting the multiple categories and returning the products filtered by that category.
You should be able to set this up by through the admin panel in
"Products" --> "Taxonomies"
If you edit "Categories" and add subcategories of "Mugs", "Bags" and "Books" you should be able to get what you are after via
https://www.example.com/t/categories/
I have implement a helper which contains list of US states. Please check here:
Rails Select Drop Down for States?
Now I have to display the selected US state name on the view file. How can I access that?
As long as it is a drop-down it is working fine.
For example my user selected Maryland ,in the database the value inserted is MD.
Now,I have to display Maryland on the view page.
Please note I have simply created a helper named us_states in ApplicationHelper.
May be:
us_states.select{|v| v[1]=="WA"}.first[0]
I'm trying to create a link in one Joomla article that points to another article, but can't see how this should be done.
Could you please tell me how to do it?
You can link to it like this:
index.php?option=com_content&view=article&id=ARTICLE_ID
Use the JCE Editor. Then follow these steps.
Select the 'link' option
Select browse/content
Select the content item
Select 'insert'.
This is one method, but there are many others. The example uses Joomla 2.5 but the same process is used in Joomla 3.0.
To create internal linking between different div or p just create links like this
Go to div one
Note: must add full URL of current article and then add #name.
<div><a name="div1">Here is div one</a></div>