how to add a list with different product sizes in opencart? - opencart

i'm have to make a webshop with opencart.
The person who i am making this website for, wants to sell cooking pans, with different sizes.
so, if you click on a product, there has to be a list with the different sizes of the cooking pans, and different prizes.
Is this possible ?
many thx !

This, of course, is possible :-)
All You need to do is to set the product options. In Opencart administration, go to tab Catalog and select the Options item. Crete an option, let's call it Pan sizes and choose a form field for it - whether a radio buttons or select would be OK for it. After saving You would have to add Pan sizes option's values - here You can set all the possible sizes of the pans. When You are finished You can assign that option and set the concrete possible size options in the product detail -> open up the desired product, choose the Options tab and add an option - Pan sizes. Then add all the relevant sizes options and adjust the pieces count, price that is added or subtracted as well as other options there and hit Save at the end.
You should be done.

Related

Drillthrough a column of a matrix

I have the following page :
I want to click on the name of the agent to move to report with more details for an agent, this is a simplified example:
Can I include filters in the detailed target page ?If yes, can I add a clear filters butto?
In this matrix, can I format only the Agent name ? Make the color blue and the font underlined?
Can I include filters in the detailed target page ?
Yes. It's the nature of Drill-Through to carry the active filters from the source page to the target page. If you want to include filters that aren't specifically included as drill-through filters, then there is a specific setting "Keep all filters" that governs this. Your detail page can also have it's own set of slicers and filters that will be applied regardless of the context that comes through via drill-through actions.
If yes, can I add a clear filters button?
There's one native in the service. You can also affect the filters using the filter pane. And you can add a bookmark that will restore the page to some pre-set state (without filters) and assign that bookmark to a button. That's a tiny bit different than removing filters, but for most folks it's close enough
In this matrix, can I format only the Agent name ?
Yes, but only in this simple case. Look for the 'Row Headers' and control formatting there. In Matrix visuals where there are hierarchal fields, they will all be colored by this setting so it will not just be agent names. Another approach would be to apply editing to subtotals and mark 'include label' and then turn the subtotals off. You would get color on the subtotal row, but it would show on every column.
Make the color blue and the font underlined
You can set the font color on 'Row Headers' to blue. Underscore is not an option.

Opencart, Flat Charge for option (not related to Quantity)

I am having trouble with my order processing for Opencart 1.5.6. I have a series of checkboxes that if checked each cost $50.00. The problem is that the customer is ordering print materials in quantities of 500, 1000, 5000, etc. When they get to the shopping cart it charges the $50 extra for each option for each individual item ordered based on the quantity. This makes it so that their total skyrockets. If they pick one option for $50 and order 500 business cards they get charged an extra $25,000 for that one option.
The only solution that I can see is to have the Quantity be an option and only allow them to order one product but that does not allow them to change the Quantity of cards in the Cart.
Is there anyway to set it up so that an option charges a flat rate not based on total quantity of the order?
When customizing OpenCart follow these steps.
Look to see if this link has an extension that will do what you want.
If step 1 did not work. Go to your public_html file (the place that has all your code). Open the files that are related to your problem and edit those. There is also an OpenCart forum that will help with common problems.
As far as changing the settings on your payment function. Go look at OpenCart->catalog->checkout folder. Or maybe OpenCart->admin->checkout. You will need to find the function that adds quantity and gives value. You will need to change those around a little.

How to run a SQL command to change the products layouts in opencart

I was wondering if someone knows a command to change some of the product pages to a certain layout that you create in Opencart?
I have about 100 products I need to change their layouts to display certain things in the sidebar for the 100 products.
I created the layout in the admin area of Opencart 1.5.5.1. Honestly, having to go to each product (catalog > products) and select the design tab and select the Layout Override: to the choice of layout seems a little long to do!
Was hoping there is a simply SQL command to do. Is this possible?
Supposing You would like to update all the products with the same layout, follow these steps:
Find out the Layout ID (let's say, it would be 15).
Open up Your famous DB manager, let's say phpMyAdmin, while opening the window to type the SQL queries into it
Type in the following query and execute it:
UPDATE `product_to_layout` SET
`layout_id` = 15
WHERE
`product_id` IN (
SELECT `product_id` FROM `product`
)
(if You are using DB table prefixes, add it to the table names product_to_layout and product)
I am also supposing You only have a single store installation. The multistore could be a little different if You would like to set one layout for one store and another for other store.
If You have more layouts and would like to set one layout to a certain set of products You would have to modify the WHERE part to update only the concrete set of products.

variable date option in opencart

1st I want to remove text field for date so the calendar will replace it.
2nd I want to make the status order.. I want to sell the service, so I need to make booking order by calendar. If the date is green client can make an order. If red the client can't book an order. If yellow there certain items can be ordered.
I hope someone can help..
Thanks.
You have to try something at least and ask only for advice then.
Anyway, few suggestions:
it cannot be done using that option field of type date, at least not with the default datepicker.
You will need to create Your own datepicker component that will search for free/partialy/fully ordered days in the database and color the table cells accordingly.
It is not very wise to hide the input - by this visible user could anytime check what date did he pick - if it is not visible he would need to always open the datepicker to check for it...
Disallowing to order some service based on some reservations is highly decreasing Your conversion rate - thus decreasing Your income. I would definitely go the way let the user buy/order anything at anytime while having separate reservation system. If user buys a service at thank You page I would recommend him to book a concrete date for the service to be drawn. Here You do not need to fight with product options which are meant totally for something different that You are trying to.
Keep that in mind (mainly the 4th point) and re-think Your problem.

Long check list ui pattern for web

I have a data entry page where the user is required so make some selections from a list. Currently it is just a check list with about 10 items they can tick, but is will expand soon to about 230. What is a good UI paradigm for dealing with a large number of selectable items? I am considering dual list type control.
Dual list, BUT, for a large # of non-groupable elements:
MUST have ability to select multiple elements (Duh!)
SHOULD have ability to select ALL elements with a click
SHOULD have ability to search (in either list), and select all matching elements
Also, if the lists are REALLY big (1k+), you may run into trouble with slow rendering.
If so, you can also "paginate" the list - e.g. display only first N elements, allow selection from those, and then ability to shift the "frame" to next N elements.
(all the above, BTW, are real attributes of a solution we implemented in an enterprise web app needing a selection list with 30k possible values which could not be grouped).
Are the items grouped in any way? If so, a collapsible tree-type navigation might be useful.
It really depends on the situation and how much space you have but in most cases I prefer the dual list control, aka list builder, you where thinking about.
Here's a nice link for inspiration (requires silverlight): http://good.ly/qh7aeg8
Here's an accessible way using only HTML and Javascript:
Use the HTML fieldset tag to chunk them into logical groups;
use (say) JQuery to show/hide each group;
add navigation at the top to jump to each group.
If you hide all the groups initially, users can click the link for the groups they want to complete. Further, if you add a rollover (could just be a tooltip title attribute on the links for accessibility) with a description of each group, users will have a 'preview' before visiting it.
Finally, if the labels are short enough, give the fieldsets a width and make them into columns using CSS float or absolute positioning.
Try to stick to valid (X)HTML, CSS and Javascript - there are plenty of precedents for this.