Jump to content

Post data on bundle product in whmcs


Recommended Posts

We are on home page and posting search data on product cart page, This is our old code

 <form method="post" action="cart.php?a=add&pid=3">
               <div class="row">
                   <div class="col-md-12 col-sm-10 col-sm-offset-1" style="margin-left:0;">
                       <div class="input-group input-group-lg">      
<input type="text" class="form-control" name="sld" placeholder="YourName" autocapitalize="none" />
   <span class="input-group-addon" id="start-date" style="color: red;
font-weight: bold;"><span class="glyphicon" style="font-weight: bold;font-family: tahoma;">.YT</span></span>
<input type="hidden" class="form-control" name="tld"  autocapitalize="none" value=".yt"/>
<input type="hidden" class="form-control" name="bid"  autocapitalize="none" value="1"/>
<span class="input-group-btn">                                {if $registerdomainenabled}
                                   <input type="submit" class="btn btn-warning" value="{$LANG.search}" />
                               {/if}
                           </span>
                       </div>
                   </div>
               </div>
           </form>

Now our problem is we also have a bundle page so we want to use that, Instead of product page. SO we replaced

 

cart.php?a=add&pid=3

with

 

cart.php?a=add&bid=1

But now data(search string) is not going on bundle page. After submit page is first go to cart.php?a=add&pid=3 then it will redirect to cart.php?a=add&pid=3, And where we dont have searched string. So how we can post search string on bundle page?

Link to comment
Share on other sites

i'm not sure that you can do this with product bundles, e.g pass configurations to it.

 

as product bundles are effectively just envelopes containing product(s), I think that you can only link to it and then the user will go through the order process manually by selecting their configuration.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated