15,694 Topics
![]() | |
I have magento shipping charge code : <?php ob_start(); // require_once(__DIR__ . '/app/Mage.php'); require_once('./../app/Mage.php'); umask(0); ini_set('display_errors',true); ini_set('memory_limit', '1024M'); Mage::app()->loadArea('frontend'); function getShippingEstimate($productId,$productQty,$countryId,$postcode ) { // $quote = Mage::getModel('sales/quote')->setStoreId(Mage::app()->getStore('default')->getId()); $quote = Mage::getModel('sales/quote')->setStoreId(Mage::app()->getStore('english')->getId()); $_product = Mage::getModel('catalog/product')->load($productId); $_product->getStockItem()->setUseConfigManageStock(false); $_product->getStockItem()->setManageStock(false); $quote->addProduct($_product, $productQty); $quote->getShippingAddress()->setCountryId($countryId)->setPostcode($postcode); $quote->getShippingAddress()->collectTotals(); $quote->getShippingAddress()->setCollectShippingRates(true); $quote->getShippingAddress()->collectShippingRates(); $_rates = $quote->getShippingAddress()->getShippingRatesCollection(); $shippingRates = array(); foreach ($_rates as … | |
Got Client with need of **"online print shop"** Client is providing paper printing (like business cards, flyers), printing on cloths, office stationary, logo embroidery on any type of clothing. Client provided some examples. **Links** * [rockdesign](https://www.rockdesign.com/) * [moo](https://www.moo.com/ca/) * [readyprint](https://www.readyprint.ca/) * [vistaprint](https://www.vistaprint.ca/) * [printshop](https://printshop.ca/) * [printvenue](https://www.printvenue.com/) **Where do I start?** … | |
Dear , We have an billing script when we enter value on the submition page it will create an recipt number and other details we have entered in the form on the page recipt.php that was the first code. Past year the script was working fine but now it was … | |
Hi DW. Can someone with Windows 10 help me out by testing my library on Edge browser and open the developers console and see if there are any errors that are causing the library not to work on Edge browser. The library is http://iwpe.000webhostapp.com/iwpe This should encrypt your password on … | |
I have predefined value like shipping_weight = 10$, my form consisting two dropdown list, if the dropdown selected based on the selection how to return my ajax value, Index.php : <tr> <th>I have : </th> <td> <select id="old" name="i_have"> <option value = "select_option">Select Option</option> <option value = "three_compact">3 Compact</option> <option … | |
I have downloaded phantomjs library and created a test.js file inside bin folder and wrote some code and execute it using command prompt it works great so far so good But I am required to call this test.js file from a php file The problem is including test.js file like … | |
I have dynamic page which is loading and preview page from database retrieved values. I did this with successfully. I want to remove parameters from page url. Note that I only used one parameter in url. My url is something like this. (with parameters) http://ads/ad?this=daihatsu-boon-m700s-new-design-2016-nugegoda-2019-04-05-22-49-04 I tried to remove parameters … | |
HomeController.php public function getFrontFacebook() { $domain = $_SERVER['SERVER_NAME']; $user = User::where('domain', $domain)->first(); return view('soulfy.facebook', ['user' => $user]); } How to hide .content-placeholder on the first load? Since the load js does not function any longer after the soulfy.facebook page open. How to fix this script and place it on soulfy.facebook. … | |
Need help to scroll when mouse wheel is used. Scroll Up or Down as per mouse action. I'm trying to create `moveDown()` & ` moveUp()` function, to scroll according mouse wheel action On scroll, remove class of current div :- `.active` and add class :- `.active` to scrolled div(div in … | |
* My [Primary code](https://jsfiddle.net/kvp2Laju/) jsfiddle * I was using [iscroll](https://github.com/cubiq/iscroll) to scroll to target. * **data-section** attribute is used for section id. section is full height & full width size. * **data-slide** attribute is used to get target id, it is animated mouse icon. how to scroll to target ? … | |
I'm fetching client records from the database and after concatenating the model class properties(FirstName and LastName) I converted these records in JSON string. My goal is to display these records in Jquery Datatable. I observed at debugging, all these records are in a single string causing the error **"Requested unknown … | |
I created a small landing page in Mobirise. I'm selling hand-made soap. I want my customers could go back to my page after the purchase but I don't know how to do that. Also the form doesn't send any confirmation email. Could you please help me? Thanks in advance. | |
Hi, I'm new to php (Yii Framework) and SQL (phpMyAdmin). I have problem to ask.  Currently the three dropdown menu from different table and each have different id called aircraft_type, aircraft_sn and aircraft_reg. I want to use only one table called aircraft. In this table have all three details … | |
I am working on an image cropper. And I am on the first stages. I want to know how to create the the two divs over the image, one is transperent while the other acts as a mask. Can this be done with CSS? Or should I consider jQuery? This … | |
i really need help, am new in programming and youtube is my teacher. i really need assistance to install Cryptomarket Trading System Installer in to my cpanel. | |
I am required to pass a parametre to jquery post and then get it using $_POST method .But it doesnt work this way.I cant display on the page <!doctype html> <html lang="en"> <head> <title>Document</title> <script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js" integrity="sha256-T0Vest3yCU7pafRw9r+settMBX6JkKN06dqBnpQ8d30=" crossorigin="anonymous"></script> </head> <body> <?php @$a = isset($_POST["isim"]) ? "var" … | |
<table> <?php if(count($members)) $j=1; foreach($members as $key => $member) <tr> <td><label><?php echo $j.". "." ".$member->member_id." ".$member->name;?></label></td> <td><input type="radio" id="attendance_<?php echo $key?>" name="attendance[<?php echo $key?>]" value="present" required >Present <input type="radio" id="attendance_<?php echo $key?>" name="attendance[<?php echo $key?>]" value="absent" required >Absent</label></td> <td><select name="reason" id="reason" required style="display:none"> <option value="Work">Work</option> <option value="India">India</option> <option value="Sick">Sick</option> <option value="Personal/Family Issues">Personal/Family … | |
We have completely redesigned our website but am not sure about the page content whether its enough to get ranked on search engines? What are all the possibilities available to get ranked immediately on the first page of google - https://www.dezvolta.com/ | |
I'm stuck with playing multiple sounds on website. I've 3 sounds , * Background sound * Hover Sound * Link Hover Sound I'm playing background sound with following code, //play audio var audioOn = true; var bg_src = "audio/bgaudio.mp3"; var audio = new Audio(); audio.addEventListener("load", function() { audio.play(); }, true); … | |
I'm recently trying to upload images without page refreshing. To do that I had identify ajax. My server side programing language is php. So I tried and success with it, but it's refreshing page. So I change that code after do research. But it shows error. Please help me with … | |
I found some examples of custom function. By checking code of some websites I created my custom function, but I'm unable to use it. How to call & use following functions? goHome: function goHome(e) { //TimelineMax code //TweenMax code } openWork: function openWork(e) { //TimelineMax code //TweenMax code } openAbout: … | |
Hello guys , i have an issue , my jquery code works on safari but when i go on chrome or any other web browsers it dosen't work . I tried to edit my code but still nothing is working . I do not know where it comes from, the … | |
I have a form as below on a page pricelist.php. On submit, it uses the code in submit.php to print a price next to the form on pricelist.php depending on the choices submitted in the form. On submit, I need the values of the first two fields to be retained. … | |
Hi. In short, how can I make this javascript to refresh the page when uploading is done ? :) [code=javascript]function $m(theVar){ return document.getElementById(theVar) } function remove(theVar){ var theParent = theVar.parentNode; theParent.removeChild(theVar); } function addEvent(obj, evType, fn){ if(obj.addEventListener) obj.addEventListener(evType, fn, true) if(obj.attachEvent) obj.attachEvent("on"+evType, fn) } function removeEvent(obj, type, fn){ if(obj.detachEvent){ obj.detachEvent('on'+type, … | |
...was asked for some php file upload code, so I thought I would post some stripped down, barebones code that I use in admin/dashboard pages to add/change images associated with products. Please see attached image for folder setup. The code uses the [jQuery Form](http://malsup.com/jquery/form/) plugin by Mike Alsup. **index.php** has … | |
As web developers we do take seriously the security of our end users by applying a hash method on their passwords before storing it to the database so should our database be hacked we know that our end user passwords are secure. But what about the browser remembered passwords on … | |
in C# and PHP, we can parse xml data easily by server side coding, but how we can parse xml with client side? java script or jquery is the best option? | |
Many thanks if you are looking at this. I have a simple order form that allows users to place an order for an item. The form also allows the user to add more items, calling a javascript function that utilizes innerhtml. Included in each order form, are dates. I am … | |
Working on fullscrfeen slider. Need help to count slides inside main slider container & create navigation `<ul class="Nav"><li><a></a></li></ul>`. Need help to add scroll effect Vertically or Horizontally Add class **.active** to active slide Display tooltip on navigation hover Need help to write function , $('main').slider({ //It may be main or … | |
I have a small application written using javascript (NodeJS). How can I run it as an executable file? |
The End.