Jump to content

Manual Seo Url - Whmcs - Script Productinfo Problem


berkarg

Recommended Posts

Hello,

I want to show a URL address in Whmcs like a different url. I want to configure some url addresses as I want.

For example, the current url is:  http://whmcs.community/test-file

I want this url to :  http://whmcs.community/test-file/yes/community/yea/testing

My system Information : WHMCS Version : 7.4.2 PHP Version : 5.6.37
 

My .htaccess : 

RewriteRule ^test-file/yes/community/yea/testing test-file.php [NC,L]


My test-file.php : 

<?php
 
 define("CLIENTAREA",true);
 //define("FORCESSL",true); // Uncomment to force the page to use https://
 
 require("init.php");
 
 $ca = new WHMCS_ClientArea();
 
  $ca->setPageTitle("Test File");
  $ca->addToBreadCrumb('index.php',$whmcs->get_lang('globalsystemname'));
  $ca->addToBreadCrumb('test-file.php','Test File');
 
 $ca->initPage();
 

 //  $ca->requireLogin(); // Uncomment this line to require a login to access this page
 
 # To assign variables to the template system use the following syntax.
 # These can then be referenced using {$variablename} in the template.

 $ca->assign('pagelayout', nonwhmcs);
 $ca->assign('pagetype', planpage);
 
 # Check login status
 if ($ca->isLoggedIn()) {
 
   # User is logged in - put any code you like here
 
   # Here's an example to get the currently logged in clients first name
 
   $result = mysql_query("SELECT firstname FROM tblclients WHERE id=".$ca->getUserID());
   $data = mysql_fetch_array($result);
   $clientname = $data[0];
 
   $ca->assign('clientname', $clientname);
 
 } else {
 
   # User is not logged in
 
 }
 
 # Define the template filename to be used without the .tpl extension
 
 $ca->setTemplate('test-file');
 
 $ca->output();
 
 ?>


My test-file.tpl : 
 

				<!-- Package Start -->
				<div class="col-sm-6 col-md-4  margin-top-30">
					<div class="panel panel-info relative">
						<!--<div class="ribbon ribbon-small text-white">
							<div class="ribbon-content bg_primary text-uppercase text_white"> OFFER </div>
						</div>-->
						<div class="panel-heading">
							<h3 class="text-center"> <script language="javascript" src="feeds/productsinfo.php?pid=452&get=name"></script> </h3> <h2> <i class="fa fa-linux"> </i> </h2>
                        </div>
                        <div class="panel-body text-center">
                            <div class="price-cercle">
                                <!-- <h6 class="through-line common-price">$ xxxx</h6> -->
                                <h4> <script language="javascript" src="feeds/productsinfo.php?pid=452&get=price&billingcycle=monthly&currency=1"></script> 							</h4> <span class="per">AYLIK</span>
                            </div>
                        </div>
						<ul class="text-center">
							<script language="javascript" src="feeds/productsinfo.php?pid=452&get=description"></script>
						</ul>
						<div class="panel-footer">
                        	<a class="btn btn-new btn-lg" href="cart.php?a=add&pid=452">SATIN AL</a>
                        </div>
					</div>
				</div>
				<!-- Package End -->

 

As you can see in the above file, whmcs does not capture product information when I make .htaccess redirects.

When the url is changed with .htaccess, no information is returned.

Codes that do not work with urls:

<script language="javascript" src="feeds/productsinfo.php?pid=452&get=name"></script>
<script language="javascript" src="feeds/productsinfo.php?pid=452&get=price&billingcycle=monthly&currency=1"></script>
<script language="javascript" src="feeds/productsinfo.php?pid=452&get=description"></script>

Why is Whmcs unable to capture product information in the artificial URL made with .htaccess?

Sorry, for my bad english, i using google translate.

Thanks for all helping i waiting you for fix this issue.

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