/    Sign up×
Community /Pin to ProfileBookmark

Is this SubCart layout possible to do?

Hey, i am making a mock shopping website for college at the moment. I have a subCart in which the selected items are shown in at the bottom of the page. I have the cart fully working, the only thing that is wrong with it is it’s look.

The cart is shown in a seperate row at the bottom of the page, taking up about 25% of the frameset. How the max number of products is 9.

so i was thinking about doing the following layout:

When the first 3 items are selected it’ll display them like this:


*********************************************************
  • * Product1 *

  • * Product2 *

  • * Product3 *
    *
    ********************************************************
  • Then when the next 3 are added it’ll show:


    *********************************************************
  • * Product1 Product4 *

  • * Product2 Product5 *

  • * Product3 Product6 *
    *
    ********************************************************
  • And finally if all 9 items are added it’ll displayed them like this:


    *********************************************************
  • * Product1 Product4 Product7 *

  • * Product2 Product5 Product8 *

  • * Product3 Product6 Product9 *
    *
    ********************************************************
  • Basically it should have 3 tables displaying three items at max.
    Each time an item is added the page is reloaded.
    Can this be done? If so any hints or clues on now to do it?

    Thanks in advance

    to post a comment
    JavaScript

    0Be the first to comment 😎

    ×

    Success!

    Help @benzino spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.20,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...