Posts by Dexxtz • 609 points
29 posts
-
1
votes2
answers77
viewsQ: Geometric shape with css
I needed to play the image in css, I tried some options of Transform and I can’t stretch one end. My question is how to take the bottom of the left and make it bigger downward than the right. The…
-
0
votes1
answer312
viewsQ: Click as if it were toggle or Hover
I’m having a problem with something similar to a legacy tooltip, what happens is that they did it in Hover this way: var elem = jQuery('#interrogacao_adicionar_cartao_div');…
-
2
votes1
answer22
viewsQ: Observe an element when a new class appears
It would be these fixed frontend bars, the problem is that I can’t find how a class is inserted to put things in it. Example: <div class="main-menu">conteudo</div> After a little…
-
0
votes1
answer80
viewsA: File exchange . phtml on option change (Admin Magento)
From a researcher on the ifconfig xml of the user, is a condition if you are yes he executes. Would something like this: <layout version="0.1.0"> <default> <reference name="root">…
-
0
votes1
answer128
viewsA: How to load a variable inside the message via custom module?
I think what you want is something like this: <p class="availability in-stock"> <?php $quantity = Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty();…
-
1
votes1
answer266
viewsA: How to get the category url [Magento] in this code?
The $obj->getStoreCategories() takes basic category information that does not include the url, the ideal then is to have direct reference or a new object, I prefer direct reference as code below:…
-
2
votes2
answers240
viewsA: Checkbox automatically checked in array
Try adding: 'values' => true, or 'values' => array('value',true), In some settings php with xml is like this.
-
2
votes1
answer1251
views -
0
votes3
answers384
viewsA: Multilojas Different Checkouts
Well I don’t know how you’re being treated in Magento. But Magento allows you to have 2 or more stores in the same facility, to register a new store access the admin tab System/ Manage Stores. If…
-
1
votes1
answer79
viewsA: Copy Welcome Message - Magento 1.7
You do not have this option by Magento’s administrative panel, I believe that you would get what you want by having to change the method sendNewAccountEmail class…
-
0
votes1
answer45
viewsA: How to change an attribute from GLOBAL to WEBSITE
I believe it is possible only by bank. Would be on the table catalog_eav_attribute but I don’t know how her relationship with eav_attribute. I believe the column attribute_id of eav_attribute which…
-
4
votes4
answers1914
viewsA: Take accent from a string
if (isset($_POST['txtnome'])) { $txtnome = $_POST['txtnome']; // COM O htmlentities ELE CONVERTE ACENTOS EM CODIGOS HTML, sem ele o str_replace funcionará. TESTADO EM UM SCRIPT MEU. BY…
-
0
votes1
answer159
viewsA: Combobox Populating Cities in Magento
You can put your combobox in a file and call where you want that way: <?php echo…
-
1
votes3
answers7469
viewsA: Doubt about input stylization="Submit"
Use input[type="submit"] so you can customize only him. Example: .rodape input[type="submit"] { color: blue; } Some examples click here…
-
-1
votes1
answer1510
views -
-1
votes1
answer1510
views -
0
votes4
answers2562
viewsA: Definition of "margin-top" in percentage of a "div" works strangely
adds to the div css #content display: table-caption;
-
0
votes3
answers777
viewsA: Sum amount of repeated PHP variables
Try adding a group by in the order products, would look something like this: $items = $order_data->getCollection()->getSelect()->group('product_id'); or $items =…
-
1
votes1
answer424
viewsA: Head Block does not load CSS file
Try as Ference instead of Block <reference name="head"> <action method="addCss"><stylesheet>css/base.css</stylesheet></action> <action…
-
1
votes2
answers732
viewsA: How to capture a line from a file and then overwrite?
Correct answer <?php // transforma o conteudo do arquivo em array $arquivo = file('Library/config/PaymentConfig.php'); // armazena o que contem a linha 11 $conteudoLinha = $arquivo[10]; //…
-
-1
votes2
answers732
viewsQ: How to capture a line from a file and then overwrite?
I have to access a file by php, this file has a variable at line x I want to take the contents of this variable, step to a condition, if other than expected I replace the value of this variable by…
-
1
votes3
answers1434
viewsA: Mouseover effect with jQuery
Use the 2 events so you add and remove when exit .mouseover() para adicionar os spans com append() .mouseleave() para remover os spans com .remove()
-
0
votes4
answers193
viewsA: How to space the "fixed title" of a page and the posts?
You can create a class on the body of each page, it is something well used, usually this class is the name of the page. so you can have control of any element per page. Example: .class-body…
-
5
votes3
answers614
viewsA: jQuery’s$ doesn’t work
You must have some other script forcing jQuery instead of $ search for jQuery.noConflict() but to help you try: <script type="text/javascript"> var $ = jQuery.noConflict();…
-
12
votes4
answers29756
viewsA: How to change dates from the American format y/m/d to d/m/y?
<?php echo date('Y/m/d'); // retorna a data nesse formato ano/mês/dia, essa data é a atual do servidor você pode alterar da forma que desejar exemplo date('d-m-Y') echo date('d/m/Y',…
-
0
votes3
answers88
viewsA: How to always leave 20px margin at the bottom of the page?
Checks by inspecting elements, if your body is 100% at the height of the page, if the margin-botom:20px is to work or also position:Absolute; bottom:20px; Now if in inspect elements of your body is…
-
0
votes4
answers483
viewsA: Is it possible to check the size of a string that is inside an array?
if(strlen($variavel) > 0) It will check how many characters the string has passed, if it is greater than 0, it is because it has something But it can be used several times: if(!isset($variavel))…
-
0
votes3
answers3033
viewsA: Load page only when image is loaded
I advise you to use it this way: <script src="http//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script type="text/javascript"> $(window).load(function(){…
-
4
votes3
answers16599
viewsA: Fixed div when scrolling down page
I think that solves <body style="height:2000px"> <style type="text/css"> .newsletter{position:fixed; bottom:15%; left:10%; width:220px; height:300px; background:#000;} </style>…