Oracle Apex - Display Items based on number of values - oracle

I have a regular link on an Interactive Report:
That links sends the Deal Number information into a different page where the user will be able to update all product information.
As per customer request, I need to use items. Issue is, that I need to show one textfield item per Product, so for example:
If Peter is selected (as per my snap above), I would need to show 2 textfield Items, one for Product 'ABC' and another for Product 'XYZ'.
If John is selected, I would need to show 3 textfield Items, one for 'Product1', one for 'Product2' and another for 'Product3'.
Is there a way to achieve this dynamic display of items?
If so, how can I make Item 1 to show Product1 info, Item 2 to show Product2 info and so on?
Thanks

There are a couple of routes you can take, each one has it's pros and cons.
1. the APEX_ITEM API
This is an API that renders apex items, as part of a sql query or in a static region with pl/sql source (not tested that last option)
Pro:
a lot of flexibility
Cons:
Look and feel is "old" - doesn't look anything like the modern page items that exist in the universal theme and you're stuck with that old look and feel. Lots of hardcoded pl/sql.
2. A fixed number of pre-created items.
Create a number of items and populate only the ones you need, eg P1_PRODUCT1_NAME, P1_PRODUCT2_NAME, ... .If you only need a single product then you're populate only P1_PRODUCT1_NAME, else you'd use as much as you need. With server sided conditions you hide/show the ones not needed/needed
Pro:
All the bells & whistles for look and feel you have in "normal" forms
Cons:
Can't render more products than what you created items for in your page. What if you create fields for 10 products but you need 11 ?
3. Interactive Grid.
I know "the customer wants items" but this component is specifically written for this purpose. I'd definitely consider this as an option - maybe you can make the customer change his mind.
Pro:
Very modern apex component, highly configurable. Check the interactive grid cookbook for a ton of advanced examples.
Cons:
Not items - this is tabular form/spreadsheet layout. Not all end users like them as a form of data entry.

Related

Magento Extension to Filter Category Products By Vehicle Year / Make / Model

I've seen quite a lot of extensions that do Year/Make/Model search of products, that's not what i am after.
What i want is to let a customer select his vehicle YMM (year make model) and once he did, i want all the products shown to only fit that vehicle in any category he navigates to. So say we have 2 categories - suspension and brakes; once the vehicle type is chosen, only parts fitting that vehicle will be shown under suspension and under brakes.
I also want to be able to define universal products which will be shown regardless of vehicle type chosen.
So far couldn't find such an extension.
Any help or pointers will be greatly appreciated.
I am open to implementing something myself if needed.
Checkout this extension : http://www.magentocommerce.com/magento-connect/parts-finder.html
I have gone through this module and with little modification,it serves both your purpose.
1) It has filters for individual categories as well. Lets say if you want that once filtered, the same products should be shown in all the categories, you can customize that little part on your own.
2) It has global import section,which will display the products regardless of the filters chosen.
I have seen this Year Make Model magento extension in many sites - http://mage-extensions-themes.com/magento-extensions/top-magento-extensions-for-auto-parts-store/year-make-model-professional.html
It seems to have high popularity in Magento Connect. You may want to try that.

Selectable categories and products in magento admin

Goal
I am upgrading a custom in-house module for magento EE. The module groups clients together and has special rules that can be applied to the group or individuals of the group. I need to add an extra tab that allows, on a per group basis, to select items and/or categories. When they are selected people within this group will not be allowed to see those categories or products.
What I have
I have the the tab created and I know what I need to do on the front-end to achieve my goals. The issue is creating the selector. I have played with it for a couple hours and made no real headway as of yet. I have only been doing magento development for the past 5 weeks, so I am very new to this framework.
What I need help with
I would like to select the categories and items in the same fashion as when you go to Catalog->Categories->Manage Categories. The left column has a tiered list. I would like to have one like this but with check boxes for selection. When looking at Promotions->shopping cart rules->actions(tab), select a rule, choose the actions tab. In the second fieldset, if you add a new rule 'category' and then select the icon for the tiered tree that is exactly what I want. Same idea for products, its okay if the look is different. Just need to be able to do it both ways.
I need to be able to store the selected values, and retrieve them (easy once I know how to store them).
Please provide any code, guidance, or links to tutorials which are in the ball park. It would be much appreciated. I'm sure the generic option of being able to select things in this manner would be helpful to all.

Magento custom browse catalogue workflow

I'm evaluating Magento for a particular client of mine. They want to enforce a particular workflow for browsing the catalogue. They're a travel company which puts together custom holiday packages and want to make sure users enter things like the number of adults / children before selecting accommodation (as number of people will affect available accommodation and pricing).
Note that accommodation is just an example, there are several other different components to a holiday package. And they've given me a 7 step (mostly) linear workflow they want users to follow before we get to anything which might resemble a checkout process (and even then their concept of "checkout" is quite different to Magento's).
I'm thinking of storing accommodation (and each of the other package components) in separate product categories. Then I can restrict what users can see as they browse the catalogue based on what they've already added to their shopping cart.
My research indicates that Magento doesn't really do this kind of thing out of the box. Am I mistaken? Are there add-ons which would support this kind of thing?
If I was to go down this road, would I be redesigning (or indeed, replacing) a large chunk of Magento's catalogue browsing functionality?
Well there are several approaches that you can take to implement something like this; but all require that you do custom development work.
You could define your packages as simple products with attributes for each of the specific package options and use that to filter each package from the others, now you would need to create a new module that adds a route on the frontend that is going to be your multistep form that will get all the information once you have all the information you can get a collection of all the products(packages) that match those attributes.
Now the deal there is if that price changes depending on the options selected if that's the case then you might need configurable products or something custom to change the price of each package.
It's really hard to say without real specifications of what your client needs, but if the question is if it's possible with Magento then the answer is yes it all depends on your level of skill :)
Kind Regards
So I ended up going with Magento as a product base and extending it using some custom code (been a while since I've developed in a LAMP environment!)
I created a static block which is used as the root of the workflow. There are 8 steps in the workflow which get listed in an ordered list. Each item has two custom Magento widgets next to it, which are a) a little tick image displayed when you've completed the workflow stage and b) a link which displays when you're up to that stage, clicking the link takes you to an appropriate catalog page (eg: choose accommodation, hire car, confirm shopping cart, etc).
I disabled the normal top catalog navigation to encourage users to keep within the workflow. That is, the mouse over to see more catalog detail of the "holiday planner" is disabled (although you can just navigate to the correct urls if you know them, or are smart enough to use the SEO link at the bottom of the page!).
Everything in your holiday is added as cart products (which has the positive side effect of Magento will remember your holiday if you get part way through it).
There is a big state machine in a helper class to determine what stage of the workflow you're up to. This checks your cart to see if products with particular sku's or from a particular attribute set are added.
I also overrode many URLs and redirects (eg: after you add a product) to send the user back to the root holiday planner page. This added to the workflow as almost every action you did or product you add bounces you back to that workflow page (which always tells you what the next step is).

Magento addin for Related Categories, similar to Related Products

I'm looking for a Magento addin that replaces Related Products with Related Categories.
I maintain a Magento site which sells inspirational merchandise. People often arrive at the site and see something they like, but not completely. For example, they may see a paperweight with a quotation they like, but they want a baseball cap with the same quotation. Or, the may like the paperweight but want a different quotation on it. Products are all categorized & sub-categorized on the site, but many shoppers just hit Back if they don't see an obvious & easy way to get exactly what they want.
I want to automatically place a box on the right side of each product page (much like Related Products) which lists links to several category pages, instead of individual products (there are too many). For example, you'd have automatically-generated links like "Other products with the same quotation," "Other products with the same design," etc. I'd be OK if the categories listed were either all of the categories the product belongs to, or a list that the admin can manually create fore each product.
Also, I said category, but it'd be ok if this worked on keywords/phrases, attributes, or something like that -- whatever's out there.
Thanks!
One way that you can achieve this is to adapt your Related Products block to show only the categories of the related products that have been assigned, not the products themselves.
For instance, if you have related products of 'Apples' (in fruit), 'Bagels' (in bread) and 'Cucumbers' (in vegetables) then you need not show 'Apples/Bagels/Cucumbers' and instead you could show 'Fruit/Bread/Vegetables'.
I have not checked how you can the master category for each of the related products, you may need to add that to the collection for it to show up in the template.
The advantage of this technique is that you can theme up the related products and not have to write a complicated module.

Using one stock for multiple items in Magento

Ok so what I want is to have multiple simple products draw from the same stock.
Scenario
I have a sinle nail file (Stock:500)
I have a box of nail files (50/box)
I want it so that if someone buys a box then it deducts from the 500 stock of the singles. Essentially what we do is if someone buys a box, then we ship them 50 of the single files in a box.
Any easy way to do this?
This isn't a native function of Magento, so there a few approaches you can take to emulate it:
Use an external stock management package to keep track of stock and modify Magento to use that. This will require more backend modification.
Attempt to fool Magento by using product bundles in clever ways. This will require more frontend modification
Develop or find a Bill of Materials plugin for Magento. I didn't see anything after a short search, so you may have to build it. Have that module check the constituent materials for a product before allowing it to be added to the cart.
Hope that helps!
Thanks,
Joe
Consider:
Create a template for the products that you wish to order this way. This template need only be the files you need to modify, by default it will find the missing files from your default theme;
In the template you can place some PHP to write out some extra javascript, of the prototype variety;
This frontend code hides the real quantity box, with prototype 'hide' for the relevant css id to make it a hidden form field;
The code shows its own quantity box, also an extra field for how many of the fifty packs are required;
An onchange event on these boxes gets the values of the boxes, does the required multiplication and addition, then updates the hidden 'real' quantity box with (boxes*50)+singles;
On submit the customer sees in the cart the total quantity of the product ordered - this will be total units, not broken down 'per box'. If this is a problem, you can put some words to explain that or modify your main template to handle this and present to the customer the boxes+singles breakdown;
Set your products to use the 'new theme' that has your template update code.
Test, test, test!
As mentioned by Joseph this cannot be done out of the box. The above workaround is only partial, however, so long as you make it clear to customers that they are buying 500 units instead of 500 boxes then you should have a reasonable solution.

Resources